HOW to set a global variable in C# windows form??

  • Thread starter Thread starter Jason
  • Start date Start date
J

Jason

as in web, i can use session, how about the windows form??
can i use the appSetting in app.config??
 
Not sure what you're asking (Session is totally unnecessary in Windows
Forms), but if you want a "global variable", just declare a static field.
 
Back
Top