Solved

Visuasl Basic "SSTABStrip" control

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

920 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

14 Experts available now in Live!

Get 1:1 Help Now