Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi may i know how to get the login text box value to another form in .net window application...thanks
Posted
Updated 18-Jan-12 23:50pm
v2

 
Share this answer
 
There are several ways of doing this, depending on your circumstances in what you are trying to achieve. If you want to pass the username as a string from the login form to the main form, you can create a constructor in your main form that takes a string as a parameter, and then pass the username as the parameter. You could also create a public property in your login form that returns a string, and access that from other forms. Basically, the best option will depend on what you are trying to do.
 
Share this answer
 
Comments
Rajendra Koranga 19-Jan-12 0:45am    
hi wayne, i have two from login and home in home form i have a button and want to give the permision to user as per the user ...
You can use "LoginName" Contron from our Login Toolbox available in Visual Studio.
Alternatively, You can also use State Management for this purpus.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900