![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Feb 2005
Posts: 18
Rep Power: 0
![]() |
strings?
I am doing a college project which we have to produce an address book with a login screen. I have set it up so the user must choose their username and type their password. When this is validated the main form opens and the login form hides.
How can I take the username that the user has chosen and put it into a labels caption so it says "Logged in as _________" on the main form? |
|
|
|
|
|
#2 |
|
Programming Guru
![]() ![]() |
Hey,
what you want to do is access the form elements (or what ever you want to call em) from the login screen and put their values into the caption that is on your main form. like this: Dim Username as string Username = frmLogin.txtUsername.Text Where frmLogin is the login form, and txtUsername is the text box that you want to grab data from.
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Feb 2005
Posts: 18
Rep Power: 0
![]() |
thanks, that worked, simple too, lol
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|