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!!
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!!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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
Would you post your combo_click code?