Link to home
Create AccountLog in
Avatar of garyinmiami2003
garyinmiami2003Flag for United States of America

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)
ASKER CERTIFIED SOLUTION
Avatar of Barry62
Barry62
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of garyinmiami2003

ASKER

Close() is not available nor is showdialog().  There is a thirdparty involved in this so I will just close the question