On Form1, I want to make a button wich switches on/off a Form2’s label’s visibility (visible true or false). Thank you much, I’m beginner!
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.
Well here is what you should do. The simpler but not recommended solution. I have written it just to show how simple it can be:
The better solution should Invoke delegate on the Form2:
In Form1 change only this:
Form2:
I must say that this is old school, I am sure that there are many other ways to do this especially from C# 4.0 but this is how I did it for years.