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

jQuery clickable div with working mailto link inside -

java - Getting corefrences with Standard corenlp package -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -