[.net] need help with C#

Started by
9 comments, last by Krisc 19 years, 2 months ago
Probably the easiest thing to do is send in the instance of the form.

like:

Form2 myNewForm = new Form2(this);

where in Form2 you have a new constructor...

public Form2(Form1 f){     if(f.TextBox_Text != "The password")          this.Close();}

This topic is closed to new replies.

Advertisement