|
-
Nov 5th, 2006, 08:12 PM
#1
Thread Starter
New Member
[RESOLVED] help me please..
hello...i wanna ask some question..
i have two form (form1=index and form2=main) in form1 there is an textbox and in form2 there is a label..if user enter a string data in textbox..the string will appeared in label..so the conclusion is how to get data from textbox in form1 and appeared in label in form2..
THX..
-
Nov 5th, 2006, 08:14 PM
#2
Re: help me please..
Welcome to VBForums, SiCK 
VB Code:
'in form1
'if TextBox's name is Text1
Private Sub Text1_Change()
main.labelName.Caption = Me.Text1.Text
End Sub
-
Nov 5th, 2006, 08:15 PM
#3
Re: help me please..
VB Code:
Form2.Label1.Caption = Me.TextBox.Text
You could try that in the TextBox Chage event.
-
Nov 5th, 2006, 08:31 PM
#4
Thread Starter
New Member
Re: help me please..
sorry im forget..so the conclusion is how to get data from textbox in form1 and appeared in label in form2 if user click the command button..
-
Nov 5th, 2006, 08:42 PM
#5
Fanatic Member
Re: help me please..
 Originally Posted by SiCK
sorry im forget..so the conclusion is how to get data from textbox in form1 and appeared in label in form2 if user click the command button..
in the click event
VB Code:
Form2.Label1.text = Text?.Text
Form2.Show
Last edited by crater; Nov 5th, 2006 at 08:45 PM.
-
Nov 7th, 2006, 01:51 AM
#6
Thread Starter
New Member
-
Nov 7th, 2006, 03:06 AM
#7
Addicted Member
Re: help me please..
if the problem has been solved then mark this thread as resolved
-
Nov 7th, 2006, 07:12 AM
#8
Re: help me please..
 Originally Posted by crater
in the click event
VB Code:
Form2.Label1.text = Text?.Text
Form2.Show
Labels don't have Text that have a Caption.
Keith
I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
-
Nov 7th, 2006, 08:12 AM
#9
Junior Member
Re: help me please..
would it be something like...
VB Code:
Command1_Click()
form2.label2.caption = form1.textbox.text
just a wild guess sorry if it dont help
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
|