|
-
Jan 11th, 2002, 04:57 PM
#1
Thread Starter
Addicted Member
Help...
Im kinda new to vb 6.0 but..im trying to do smoething really easy
i have 2 text boxes.. and a command button
i want to input a number into the first one..and when click the command button...have it spit out that same number in text box 2?
How do I do this?
-
Jan 11th, 2002, 05:02 PM
#2
Just input a number to Text1.Text and pu this code:
VB Code:
Private Sub Command1_Click()
Text2.Text = Text1.Text
End Sub
-
Jan 11th, 2002, 05:07 PM
#3
Stuck in the 80s
VB Code:
Private Sub Form_Load()
Text1.Text = inputbox("Enter number:")
End Sub
Private Sub Command1_Click()
Text2.Text = Text1.Text
End Sub
-
Jan 11th, 2002, 05:24 PM
#4
Thread Starter
Addicted Member
Ok thanx.
One last question:
What if I have 3 different text boxes on a form and then another one beneath the top 3. I want to input 3 values into each one of the top 3 text boxes. then in the 4th text box i want the quadratic equation A*X*X+B*X+C=0 to come out where
A = the first text box B= the second text box and C= the 3rd one.
so basically it if u enetered 3 4 5 into each one of the text boxes and hit the compute button it would spit out: 3*X*X+4*X+5=0 into the 4th text box.
thanx!
-
Jan 11th, 2002, 05:31 PM
#5
VB Code:
Text4 = val(Text1.Text)*x*x+val(Text2.Text)*x+val(Text3.Text)
?Close!!!
________
Housewives Webcams
Last edited by Bruce Fox; Aug 14th, 2011 at 04:06 AM.
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
|