Results 1 to 7 of 7

Thread: Data Retrieval

  1. #1

    Thread Starter
    Addicted Member WAcKeD's Avatar
    Join Date
    Aug 2000
    Posts
    211
    I was wondering if you opened a new form (form3) how would you retrieve data from a textbox on form 1? Is this possible?
    Thankz,
    WAcKeD

  2. #2
    Lively Member
    Join Date
    Jul 2000
    Posts
    104
    Create a Public variable in a module that is set by the textbox.

    When you load form2 just referece the public variable.


  3. #3
    Guest
    Or you can set the properties directly:
    Code:
    Form3.Text1 = Form1.Text1
    Form3.Show

  4. #4

    Thread Starter
    Addicted Member WAcKeD's Avatar
    Join Date
    Aug 2000
    Posts
    211

    Cool Huh?

    How would I do that?
    Thankz,
    WAcKeD

  5. #5

    Thread Starter
    Addicted Member WAcKeD's Avatar
    Join Date
    Aug 2000
    Posts
    211

    Talking ty

    yay!
    Thankz,
    WAcKeD

  6. #6
    Lively Member
    Join Date
    Jul 2000
    Posts
    104
    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

  7. #7

    Thread Starter
    Addicted Member WAcKeD's Avatar
    Join Date
    Aug 2000
    Posts
    211
    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.
    Thankz,
    WAcKeD

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width