Click here to Skip to main content
15,905,322 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I want to access user Name and His role at the time of login all through c# Windows Application Username i can get as input but Role I need to fetch the database and then assign it. but the problem is i need them not to be changed all through the system after login. please help

Thanks
Madhu
Posted

1 solution

This would all depend on how your application is set up. If you have a main form, then I suggest you create an instance of your user in that form, and pass the information to other forms when they open through the constructor. For me to be more specific I would need to have more information on how your app is set up.

Hope this helps
 
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