ardixiv
asked on
copying tabpage and all its items
hi all,
I have a tabpage with several labels and textboxes, which are filled by results of a MySql-query.
For each row of the result of that query I need to create another tabpage, with the same characteristics as the first one.
thanks in advance
ardixiv
I have a tabpage with several labels and textboxes, which are filled by results of a MySql-query.
For each row of the result of that query I need to create another tabpage, with the same characteristics as the first one.
thanks in advance
ardixiv
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
dim row as datarow
Dim tp as System.Windows.Forms.TabPa
Dim uc as MyTabPageUserControl
for each row in dataset1.mytablename
tp = New System.Windows.Forms.TabPa
uc = New MyTabPageUserControl
uc.TextBox1.Text = "test"
tp.controls.add(uc)
uc.dock = = System.Windows.Forms.DockS
Me.TabControl1.Me.TabContr
next
For databinding/adapter info:
http://vsnetdatabinding.blogspot.com/