Hi,
I have a form with a panel to which I add an unknown amount of user control forms (Like the MS Access continuous form in a sub-form). Can someone tell me if it is possible to access the "sub forms".
E.g. If I have the following
User control form with text boxes etc. - IngCtlForm
Panel on my form - IngredientsPanel
If I do the following...
How do I access the text boxes on the three user controls added to the panel?
Thank in advance for any help.
I have a form with a panel to which I add an unknown amount of user control forms (Like the MS Access continuous form in a sub-form). Can someone tell me if it is possible to access the "sub forms".
E.g. If I have the following
User control form with text boxes etc. - IngCtlForm
Panel on my form - IngredientsPanel
If I do the following...
VB.NET:
Private sub BuildMyPanel (ByVal x as Integer)
Dim i as integer
For i = 1 to x
Dim NewSubForm as new IngCtlForm
IngredientsPanel.add(NewSubForm)
Next
End Sub
Private sub TestBtn3_Click () Handles TestBtn3.click
Call BuildMyPanel(3)
End Sub
How do I access the text boxes on the three user controls added to the panel?
Thank in advance for any help.