-
i have two forms set out on Visual basic 6
i have a name i want entering on 1 form and then to automatically show on the 2nd.
i have it -
dim name as integer
this is set on form 1
i then want to enter text into 'textbox1' and set this as the dim 'name'
i want to show this name on a second form. i think by doing name=form1.text1.text?
any ideas?
how do i do this?
where would i set these rules? under general?
:frusty: :frusty: :frusty: :frusty:
-
can anybody help me? :helpsmile:
-
You would do a <name of form 2>.<name of textbox on form 2>.Text = name withouth the <>
So it would be something like: Form2.textbox1.Text = name
-
try just putting text1.text = name in the 'load sub' of form2
i havent screwed with vb in 2 years, so i cant remeber the exact name of the sub; or if sub's even the right word :P :lol:
Edit: text1.text = Form1.text1.text would probably work better (like i said 2 years)
-
thanks
it was me being a tit
i was entering it all under the same command.
1 other really quick one, how do you exit the program?
i have typed this at the end of the program but when i run it, instead of exiting it goes to debug.
Else
If Typenewinvoice = "no" Then
Callexit_Click
End If
End If
End Sub
p.s. i appreciate the help guys!!~!