marclenoir
Programmer
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
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