Access Public Properties of a Form created dynamically in VB.NET
Posted on 2012-04-09
I was successful in createing the UI that I wanted for a form I am working on. The UI has a ToolStrip with the buttons for the various pages. To keep things simple lets say FormOne, Form2, Form3, etc.
As I select the desired button in the ToolStrip the appropriate Form is loaded in a Form Panel. Here is how the form shows in the Panel:
Dim f_PanelForm As Form = clsMod_CreateObjects.CreateForm(p_sWindowPanelFormName)
p_sWindowPanelFormVisible = "Show"
f_PanelForm.TopLevel = False
f_PanelForm.Parent = Me
What I also have are some Public Properties on theform I just loaded and displayed. How would I reference these Public Properties. I've hear of using the Form's modifier, but I am not quite sure how to do this when my variable f_PanelForm holds the reference.
Thank you in advance for the assistance.