Justin,
You basically can't do this the way you are wanting.
The forms need to be two completely independent entities.
create formB as form ... drop controls on it
create formA as form
drop a button on it
in it's click method:
do form FormB
now run FormA ( you can click the ! button from the standard toolbar in the designer), then click the button your formB will now be running.
> I am trying to create a form from within a form. I can create the form and I'm able to create the buttons but I can't assign any code to the new button's CLICK Procedure. I tried using the DEFINE CLASS within the CLICK procedure on the button that creates the second form however I just keep getting an error (Methods and events cannot contain nested procedures or class definitions
). Can anyone help me with this?