S
Sandy
My background is web based. I am attempting to write a Windows
application and I am finding some simple things difficult.
Currently I am trying to find out how to store information session
wide. In the web you have session state and you can add variables or
objects to it. They remain in existance until the session ends.
How could I do that for a windows forms application?
For example: a modal form is launched to log in, I do a database
lookup, confirm this is a valid user. I would like to set up my 'User'
object (a class that I have created) and assign values to it based on
the person who just logged in. I then want to be able to access that
object from my other forms.
I don't know how. (I could do this for the web, but this is Windows,
target is Win2k or WinXP if it matters).
application and I am finding some simple things difficult.
Currently I am trying to find out how to store information session
wide. In the web you have session state and you can add variables or
objects to it. They remain in existance until the session ends.
How could I do that for a windows forms application?
For example: a modal form is launched to log in, I do a database
lookup, confirm this is a valid user. I would like to set up my 'User'
object (a class that I have created) and assign values to it based on
the person who just logged in. I then want to be able to access that
object from my other forms.
I don't know how. (I could do this for the web, but this is Windows,
target is Win2k or WinXP if it matters).