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

J

Jason

as in web, i can use session, how about the windows form??
can i use the appSetting in app.config??
 
J

Joe White

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top