Results 1 to 3 of 3

Thread: passing of value from one form to another

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    1

    Question

    Hi everyone,

    I like to check whether anyone has any idea on solving this problem of mine. I need to enter a value in the textbox (txt1) in form 1 and when I pressed next, it will proceed to form 2. What I need is that immediately when form2appears, txt1 value will appear in txt2(textbox in form2). Now what happen is that I could pass the value of txt1 to txt2, but however, the value would not appear till I double-click on txt2.

    Hope that someone could kindly take the time off and advice me on what to do.


    Thanks

  2. #2
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    258

    try

    Code:
    Private Sub Command1_Click()
    Form2.Text1.Text = Text1.Text
    Form2.Show
    End Sub
    Visual Basic 6 SP4 on win98se

    QUIT THE RAT RACE BECAUSE YOUR MESSING THE WORLD UP !!!!!

  3. #3
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    'form2 code
    Code:
    Private Sub Form_Load()
      Form2.txt2 = Form1.txt1
    End Sub
    [Edited by HeSaidJoe on 11-28-2000 at 12:07 PM]
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

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