Question on variable scope...

  • Thread starter Thread starter CMI
  • Start date Start date
C

CMI

Hello,

Is it possible in VB.NET to set a variable in one Windows form and have it
available in another form (i.e., a Global variable)? I've tried using
Public, Shared, etc., but cannot seem to reference the variable I set in one
form in a second form.

Thanks!
 
CMI said:
Is it possible in VB.NET to set a variable in one Windows form and
have it available in another form (i.e., a Global variable)? I've
tried using Public, Shared, etc., but cannot seem to reference the
variable I set in one form in a second form.

If you have a reference to the Form, you should be able to access it's
properties.
 
Back
Top