I was wondering if you opened a new form (form3) how would you retrieve data from a textbox on form 1? Is this possible?
Printable View
I was wondering if you opened a new form (form3) how would you retrieve data from a textbox on form 1? Is this possible?
Create a Public variable in a module that is set by the textbox.
When you load form2 just referece the public variable.
Or you can set the properties directly:
Code:Form3.Text1 = Form1.Text1
Form3.Show
How would I do that?
yay!
Put the code in the button that the user would press to load the second form:
Code:Private Sub Button_Click()
Load Form2
Form2.Text1 = Form1.Text1
Form2.Show
End Sub
Okay, now how would I load an application like:
hl.exe -game cstrike +connect 127.0.0.1:____ +password ___
where the two blanks ____ are 2 text box' will be used for the input. Does anyonw know how thats done?? Soon enough I will finally understand the way VB works. :)