Public Class MainUserControl
Public Sub New()
' This call is required by the designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
SubUserControl1.LoadCombo()
SubUserControl2.LoadCombo()
SubUserControl3.LoadCombo()
SubUserControl4.LoadCombo()
SubUserControl5.LoadCombo()
SubUserControl6.LoadCombo()
End Sub
End Class
Public Class SubUserControl
Public Sub LoadCombo()
' ... load the ComboBox ...
End Sub
End Class
Public Class Form1
Private WithEvents uc1_??? The question mark being whatever
For Each itm In arrChannels
Dim tab As New TabPage
Dim uC1 As New userChannelSettings
uC1.Name = "ucChannel" & x + 1
uC1.mlChannelName.Text = itm
tab.Controls.Add(uC1)
uC1.ForeColor = tab.ForeColor
AddHandler uc1_???? What kind of event should I add here
tab.Tag = itm
tab.Text = "Channel: " & itm.ToString
tab.Name = "tChannel" & x + 1
tabChannelList.Controls.Add(tab)
Next