|
-
Aug 10th, 2000, 10:25 AM
#1
Thread Starter
Addicted Member
I was wondering if you opened a new form (form3) how would you retrieve data from a textbox on form 1? Is this possible?
-
Aug 10th, 2000, 11:02 AM
#2
Lively Member
Create a Public variable in a module that is set by the textbox.
When you load form2 just referece the public variable.
-
Aug 10th, 2000, 11:11 AM
#3
Or you can set the properties directly:
Code:
Form3.Text1 = Form1.Text1
Form3.Show
-
Aug 10th, 2000, 11:15 AM
#4
Thread Starter
Addicted Member
Huh?
-
Aug 10th, 2000, 11:25 AM
#5
Thread Starter
Addicted Member
ty
-
Aug 10th, 2000, 11:27 AM
#6
Lively Member
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
-
Aug 10th, 2000, 11:32 AM
#7
Thread Starter
Addicted Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|