Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to create a MSFlexGrid at runtime in different Tab of a SSTab

Status
Not open for further replies.

marclenoir

Programmer
Joined
May 27, 2004
Messages
5
Location
HT
Hi guys,

I'm programming in VB6.

I'm using a SSTab and a datagrid to show some informations of a table of a sql database. The number of Tabs i can have depend of the number of records i have in the table. (example: 5 records found, so i'll set my SSTab.Tabs propertie to 5 at runtime. "Like SSTab.Tabs=5")

And the information is displayed in the datagrid. But, when i have more then 1 record, i must create the datagrid at runtime too, so that i create a datagrid control array at design time and use this code at runtime to create my datagrid :

Load MSGrid1(TabIndex)

TabIndex is a variable that contains the number of Tab of the SSTab.

My problem is : The MSGrid1 created at runtime still appear in the first tab of the SSTab.
My question is how can i create the grid at runtime and make appear in the tab i want it to appear at runtime using VB6 codes?

Sincerely yours
Marc
 
thank you i'll try these codes right now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top