I have a problem with the code. I think its got something to do with the way its laid out.
Im trying to get the user to enter a number from SetUpFrm which has a comboBox (ProjLstCb) so that the TabControl on Form1 will be populated with that number of TabPages
Here is the code
Dim ProjLstCb As ComboBox
Dim tabCount As Integer = Convert.ToInt16(ProjLstCb.SelectedItem)
Dim Count As Integer
Do Until Count = tabCount
Dim TabPage As New System.Windows.Forms.TabPage
TabPage.Text = "Projector1" & Count.ToString()
'additional code here to add other controls and modify
'properties of each individual tab page
TabSum1.TabPages.Add(TabPage)
Count = Count + 1
Loop
The problem isTabsum1 is on form1 and this code is on SetupFrm, so how do I tell this bit of code to look at form1 for the Tabsum1?
Thanks
Nick
Im trying to get the user to enter a number from SetUpFrm which has a comboBox (ProjLstCb) so that the TabControl on Form1 will be populated with that number of TabPages
Here is the code
Dim ProjLstCb As ComboBox
Dim tabCount As Integer = Convert.ToInt16(ProjLstCb.SelectedItem)
Dim Count As Integer
Do Until Count = tabCount
Dim TabPage As New System.Windows.Forms.TabPage
TabPage.Text = "Projector1" & Count.ToString()
'additional code here to add other controls and modify
'properties of each individual tab page
TabSum1.TabPages.Add(TabPage)
Count = Count + 1
Loop
The problem isTabsum1 is on form1 and this code is on SetupFrm, so how do I tell this bit of code to look at form1 for the Tabsum1?
Thanks
Nick