mohgt
asked on
share user id in vb.net windows application
how to share user id in vb.net windows application
what do you mean?
ASKER
how to use (user id) for login user in forms in vb.net windows application
ASKER
how to store (user id) to use it in all forms in vb.net windows application
Declare it as a variable in a module. Set it on login page and you can use it on any form.
ASKER
please tell me how with the code
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
I once made an app that got the current username logged in. In that app I hit a permissions db to decide what they could do, by using the currently logged in username. If this is what you mean, then
My.User.Name
Will give you the current username.
My.User.Name
Will give you the current username.