Valhalla Legends Forums Archive | General Programming | Need help in forms. (Vb)

AuthorMessageTime
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
June 27, 2003, 7:02 PM
Camel
What language?
June 27, 2003, 10:33 PM
SNiFFeR
Put this on form2:
[code]
Private Sub Command1_Click() ' this being your button
frm1.Text1.Text = "Blah" 'This telling your textbox text to be "blah"
End Sub
[/code]
June 27, 2003, 10:42 PM
OuTLawZGoSu
[quote author=Camel link=board=5;threadid=1714;start=0#msg13087 date=1056753190]
What language?
[/quote]

"Need help in forms. (Vb)"

Vb = Visual Basic
June 28, 2003, 1:07 AM
TheMinistered
[code]
...
Form1.Text1.Text = "TEXT" 'Object = Form, SubObject = Text1, Property = Text
...[/code]
June 28, 2003, 1:23 AM

Search