Creating, Showing, Returning values with Windows Forms.
-
Hello, I was hoping someone could direct me to a tutorial on the web that would describe the best practices to create and show a windows form from a parent form. Right now, I'm doing this: (Assume that I am in some method in the main form and I want to create and show Form2)
Form2 form2 = new Form2();
form2.Show();I'd also like to know how to return values from a child form. I've been searching the web but can't find anything specific. Any help would be appreciated.
-
Hello, I was hoping someone could direct me to a tutorial on the web that would describe the best practices to create and show a windows form from a parent form. Right now, I'm doing this: (Assume that I am in some method in the main form and I want to create and show Form2)
Form2 form2 = new Form2();
form2.Show();I'd also like to know how to return values from a child form. I've been searching the web but can't find anything specific. Any help would be appreciated.
-
This article may be what you're looking for on passing values between forms: http://www.codeproject.com/dotnet/passingvaluesbetweenforms.asp#xx1363185xx[^]