I want to create a second form on the fly & display results from variables in the main form to a label on the second form. Please how do I do this? Thanks
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I sense there are several questions here.
How to open a new form: in some method of
Form1, add the following code:How to pass values from
Form1toForm2: pass them when you call theForm2constructor:And the
Form2constructor should look like: