Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 10th, 2005, 8:05 AM   #1
killcity44
Newbie
 
Join Date: Feb 2005
Posts: 18
Rep Power: 0 killcity44 is on a distinguished road
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?
killcity44 is offline   Reply With Quote
Old Feb 10th, 2005, 9:22 AM   #2
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
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!
Pizentios is offline   Reply With Quote
Old Feb 11th, 2005, 9:09 AM   #3
killcity44
Newbie
 
Join Date: Feb 2005
Posts: 18
Rep Power: 0 killcity44 is on a distinguished road
thanks, that worked, simple too, lol
killcity44 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:16 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC