• Welcome to Valhalla Legends Archive.
 

Need help in forms. (Vb)

Started by OuTLawZGoSu, June 27, 2003, 02:02 PM

Previous topic - Next topic

OuTLawZGoSu

Sup. I've been working on a program and im stuck. Ok
I've got 2 forms. Frm1 and Frm2. Frm1 is the main one. On it is a text box and a button. On Frm2 is a button called "Send". This is what I cant get: When I click the button on frm2, it Prints or Types " Haha"  in the text box in Frm1.

I cant get how to do that. someone help?

L8terZ

Camel


SNiFFeR

Put this on form2:

Private Sub Command1_Click() ' this being your button
frm1.Text1.Text = "Blah" 'This telling your textbox text to be "blah"
End Sub

OuTLawZGoSu

Quote from: Camel on June 27, 2003, 05:33 PM
What language?

"Need help in forms. (Vb)"

Vb = Visual Basic

TheMinistered


...
Form1.Text1.Text = "TEXT" 'Object = Form, SubObject = Text1, Property = Text
...