Valhalla Legends Archive

Programming => General Programming => Topic started by: OuTLawZGoSu on June 27, 2003, 02:02 PM

Title: Need help in forms. (Vb)
Post by: OuTLawZGoSu on June 27, 2003, 02:02 PM
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
Title: Re:Need help in forms. (Vb)
Post by: Camel on June 27, 2003, 05:33 PM
What language?
Title: Re:Need help in forms. (Vb)
Post by: SNiFFeR on June 27, 2003, 05:42 PM
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
Title: Re:Need help in forms. (Vb)
Post by: OuTLawZGoSu on June 27, 2003, 08:07 PM
Quote from: Camel on June 27, 2003, 05:33 PM
What language?

"Need help in forms. (Vb)"

Vb = Visual Basic
Title: Re:Need help in forms. (Vb)
Post by: TheMinistered on June 27, 2003, 08:23 PM

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