garyinmiami2003
asked on
How to load a form (user control) in a class
Please answer the question using the following scenerio:
A windows Application Called TestProg1 has 1 screen (Form1) Screen has 1 label and 1 Button.
TestProg2 is a Class Library with one user controls. Each of the user controls are set up as forms:
User Control1 = TestProg2_Form1
I have provided the Button Click event from TestProg1, The "New" and
InitializeComponent() methods in TestProg2.TestProg2_Form1.
My Question:
What needs to be done to display the form, close the form, Call a 2nd user control (if there were one)
A windows Application Called TestProg1 has 1 screen (Form1) Screen has 1 label and 1 Button.
TestProg2 is a Class Library with one user controls. Each of the user controls are set up as forms:
User Control1 = TestProg2_Form1
I have provided the Button Click event from TestProg1, The "New" and
InitializeComponent() methods in TestProg2.TestProg2_Form1.
My Question:
What needs to be done to display the form, close the form, Call a 2nd user control (if there were one)
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Close() is not available nor is showdialog(). There is a thirdparty involved in this so I will just close the question
Try google search...
http://www.google.com/#hl=en&safe=active&rlz=1R2RNTN_enUS388&sclient=psy-ab&q=user+controls+windows+in+vb.net&rlz=1R2RNTN_enUS388&oq=user+controls+windows+in+vb.net&gs_l=serp.3..0i8i30.19484.28359.0.28531.30.30.0.0.0.5.203.3340.13j16j1.30.0.les%3B..0.0...1c.1.4.psy-ab.j21H3wsP3NU&pbx=1&bav=on.2,or.r_gc.r_pw.r_qf.&fp=4d9b0d82089b661c&biw=977&bih=464
or
specifically
Walkthrough: Authoring a User Control with Visual Basic .NET
http://msdn.microsoft.com/en-us/library/c316f119(v=vs.71).aspx