Solved

Visuasl Basic "SSTABStrip" control

Posted on 2007-03-27
3
276 Views
Last Modified: 2008-03-10
Hi!!

M using SSTabstrip control on one of my form. This control has 4 tabs and each tab has a Datagrid control on it. There is also a combo control on the form which displays values like for e.g Personal Info, Subscription info, Service info, etc..

Based on the value selected in the combobox i want the "TAB" along with the datagrid related to that value to be displayed.

I have written a code in the combo_click event for this, but the problem is that the related "TAB" gets displayed but the datagrid control on that tab doesnt, it displays the DataGrid of the last viewed "TAB"..

So i would like to know how to make the Datagrid relevant to the tab to be displayed when the Combobox value is selected...

Thanks!!
0
Comment
Question by:twinkle2003
3 Comments
 
LVL 32

Expert Comment

by:Daniel Wilson
ID: 18799083
SSTabStrip -- is that a Sheridan control?

Would you post your combo_click code?
0
 
LVL 14

Accepted Solution

by:
raja_ind82 earned 50 total points
ID: 18799573
When you set the tab in the combo box click event. set the flexgrid also. for example

Private Sub Combo1_Click()
SSTab1.Tab = 0
MSFlexGrid1.Visible = true
End Sub

Regards,
M.Raja
0
 

Author Comment

by:twinkle2003
ID: 18814405
Thanks a lot!! That was perfect...

The code that i wrote which didn't work was as given below:

Private Sub Combo1_Click()

       DBGrid1(0).Visible = True
       DBGrid1(1).Visible = False
       DBGrid1(2).Visible = False
       DBGrid1(3).Visible = False
       '
       SSTab1.TabEnabled(0) = True
       SSTab1.TabEnabled(1) = False
       SSTab1.TabEnabled(2) = False
       SSTab1.TabEnabled(3) = False

End Sub
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now