session in winform

  • Thread starter Thread starter Tom
  • Start date Start date
T

Tom

hi friends.

I'm still unfamiliar with winform does it have a session or application
storage that allows session to be passed from one form to the next ?

thanks
Tom
 
Hi Tom,

No, Session and Application objects are used for webforms where the lifetime of web pages and web applications are very different.

In winforms you just use variables that you expose to other forms through methods or properties.
static variables are also handy.
 
Tom said:
hi friends.

I'm still unfamiliar with winform does it have a session or
application storage that allows session to be passed from one form to
the next ?

That begs the question what a session in winforms application is meant to
be. Unlike Web Forms, Windows Forms are stateful. They can keep references
to other objects as long as they're not being disposed.

Cheers,
 
Hi,

Not, they are two completely different environments. Now, it;s very easy
to implement a similar feature if you want it. Just create a static class
with one collection like hashtable.

what is what you want to do anyway?

cheers,
 
Back
Top