Link to home
Start Free TrialLog in
Avatar of twinkle2003
twinkle2003

asked on

Visuasl Basic "SSTABStrip" control

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!!
Avatar of Daniel Wilson
Daniel Wilson
Flag of United States of America image

SSTabStrip -- is that a Sheridan control?

Would you post your combo_click code?
ASKER CERTIFIED SOLUTION
Avatar of raja_ind82
raja_ind82
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of twinkle2003
twinkle2003

ASKER

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