Hi,
I have datatable with three rows of data that will increase
I want each row to fill lables, checkboxes and textboxes on their own tab of my tab control
I have created a Template tabpage but when i try to add the other dynamic tabpages they are all blank
The form cantains: 1 x TabControl = "TabSiteDetail"
1 x TabPage = "TabArea01"
1 x label (on TabArea01) = "lblPingResponse"
1 x Checkbox (on TabArea01) = "chkMonitorSite"
1 x Textbox (on TabArea01) = "txtSiteStatus"
Here is my code
Dim TabSiteDetailTemplate As New TabPage
TabSiteDetailTemplate = TabArea01
For Each SQLRow In SQLTable.Rows
Dim NewTabPage As New TabPage
NewTabPage = TabSiteDetailTemplate
NewTabPage.Name = "tab" & SQLRow("TX")
NewTabPage.Text = SQLRow("SiteName")
TabSiteDetail.TabPages.Add(NewTabPage)
Next