change text from form
C#
21
Posts
5
Posters
0
Views
1
Watching
-
Hi OriginalGriff I exactly wrote what you said for form2 Form2 f2 = new Form2(); f2.MyProperty = "hello!"; ... but it works very well for form1 but doesnt work for form2. I dont know why C# doenst understand it.
Why would you want to write that in Form2? Form2 has the property. Form1 access the property. Think of it as a car: Form1 is you, Form2 is a car, the glove box is a property of the car.
You can open the glove box of the car
In the same way
Form1 can access the property of Form2