There is no concept of Session variables in windows forms. What you can do is: Create a internal class that holds the User name and password and any other .