PDA

View Full Version : Vb6



Tiffosi2000
05-05-2004, 08:39 PM
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:

Tiffosi2000
05-05-2004, 09:48 PM
can anybody help me? :helpsmile:

Xilo
05-06-2004, 01:00 AM
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

nsane
05-06-2004, 01:28 AM
try just putting text1.text = name in the &#39;load sub&#39; of form2

i havent screwed with vb in 2 years, so i cant remeber the exact name of the sub; or if sub&#39;s even the right word :P :lol:

Edit: text1.text = Form1.text1.text would probably work better (like i said 2 years)

Tiffosi2000
05-06-2004, 03:55 PM
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&#33;&#33;~&#33;