Where to maintain common information, that could be accessed by all forms

Posted by The King on Stack Overflow See other posts from Stack Overflow or by The King
Published on 2010-04-05T07:33:27Z Indexed on 2010/04/05 7:43 UTC
Read the original article Hit count: 277

Filed under:
|
|

Hi All,

This is my first winform app in .NET... I have made a couple of ASP.NET app...

In this app, I have some common variables, like current user name, his selected process etc.. etc.. This should be made accessible from all forms in the app at any time... How could I do this... Is there any place like "Session" in ASP.NET here...

Further How do coders generally pass information from one form to another... Here I want to pass on the info I acquired in the first form to the subsequent forms... I use constructor overloading and pass the values as parameters... I'm pretty sure there has to be a better way to do it...

Thanks for your time...

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET