Solved

Visuasl Basic "SSTABStrip" control

Posted on 2007-03-27
3
279 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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

810 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