c# - How do I maintain user login details in a Winforms application? -


hi can i'm new windows forms. here want maintain state (like session in web applications) in windows forms.

actually want store user login details in session. think there no concept of session in winforms. alternative method handle type of situation.

regards, nagu

there no concept of session variables in windows forms. can is:

  1. create internal class holds user name , password , other variables , enumerations needed across application (something common.cs). these can accessed through public properties across application.

  2. have parameterized constructor forms , send user name , password whenever showing form.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -