changing value of a second form
Posted on 2006-05-16
I am using .net 2.0,
I have to forms and from the first one I need to change the value of one of the variables of the second form.
At first I had the variable on the second form as private. I would then get and return the value. From the first form I tried to assign a value to the second form and I got an error saying that the value was read only and it could not be changed. I then changed the it from private to public and I was able to change the value from the first form fine. It works, but I was wondering if there is a better way of doing this? Thanks.