A public variable, say
myvar
, is accessible if you can access an instance of the form, say
Form1
, this way:
Form1.myvar
That said, it is not a very good idea exposing member variables such a way. As other suggested, you should study a good book on Object Oriented Programming (and possibly on
C#
)