|
-
Apr 8th, 2000, 02:16 AM
#1
Thread Starter
Member
Ok heres my problem... I have 2 forms.
A login form with the (txtUserName and txtPassword)
and a Main form. (frmLogin and Form1)
On Form1 I have label1 at the top...how do I set it up so that whatever is written in txtUserName on the frmLogin, appears in Label1 on Form1?
Thanks
-
Apr 8th, 2000, 02:29 AM
#2
Addicted Member
"how do I set it up so that whatever is written in txtUserName on the frmLogin, appears in Label1 on Form1?"
(in the form with Label1)
Label1 = Form1.txtUserName
-
Apr 8th, 2000, 02:34 AM
#3
Registered User
Just try:
Form1.Label1=frmLogin.txtUserName
Lior, An Israeli Programmer.
-
Apr 8th, 2000, 02:41 AM
#4
Addicted Member
Label1 = frmLogin.txtUserName
i had it backwards
-
Apr 8th, 2000, 02:50 AM
#5
Thread Starter
Member
Ok I figured it out. Thanx
I had to set it up so when Ok was pressed it made the label1.Caption set to the txtUserName. Thanks again!
-
Apr 8th, 2000, 08:14 PM
#6
Lively Member
You can also reference objects on other forms by using
'Change a property
FrmOther!MainWindowText.Text = "Blah"
'Execute a function
FrmOther!OpenCmd_Click
Regards,
 Paul Rivoli 
---------------------
[email protected]
http://members.dingoblue.net.au/~privoli
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|