How to display on the form automatically the user that logins in a VB program
-
How can I display automatically the username of a user that login to a Visual basic 6.0 application on the form
-
How can I display automatically the username of a user that login to a Visual basic 6.0 application on the form
NOTHING happens "automatically". You either write the code to do it or it doesn't happen. Are you prompting the user for a username and password to login to the app? If so, you already have the username is a string somewhere, so pass that to a method that sets the text of a label somewhere, or whatever control you're going to use to show the username.
Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
Dave Kreskowiak -
NOTHING happens "automatically". You either write the code to do it or it doesn't happen. Are you prompting the user for a username and password to login to the app? If so, you already have the username is a string somewhere, so pass that to a method that sets the text of a label somewhere, or whatever control you're going to use to show the username.
Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
Dave KreskowiakSo how do i pass that to a method that sets the text (user name) of a label on a particular form. Kindly assist with the right code to use on the vb6 form
-
So how do i pass that to a method that sets the text (user name) of a label on a particular form. Kindly assist with the right code to use on the vb6 form
Ummm... you're asking about how to do the simplest things in VB. You mean to tell me you seriously don't know how to pass a string to a Sub or Function? Do you even have a label on your form for showing the username? Do you even have some Sub for setting the text of that label?
Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
Dave Kreskowiak