Results 1 to 4 of 4

Thread: [Solved]Linking form 1 with form2

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2011
    Posts
    48

    Resolved [Solved]Linking form 1 with form2

    Hi, So I have two forms. In form 1, I have a textbox1 and in form two, I have a textbox2 and a button1. Now what I want to do is, write in textbox2 (That is in FORM2) and when I press the button, it just go to textbox1 (That is in FORM1)

    Any help would be appreciated

    Thanks
    Last edited by KillerBoy21; Apr 15th, 2011 at 02:23 PM.

  2. #2
    VB For Fun Edgemeal's Avatar
    Join Date
    Sep 2006
    Location
    WindowFromPoint
    Posts
    4,255

    Re: Linking form 1 with form2

    try something like,

    form1.textbox1.text = me.textbox2.text

  3. #3
    Junior Member
    Join Date
    Jul 2010
    Posts
    28

    Re: Linking form 1 with form2

    Hi.

    Im assuming that you mean you want to send the text entered in textbox2 in Form2 to the textbox1 in Form1.

    Vb Code:
    1. Private Sub Button1_click()
    2. Form1.Textbox1.Text = Textbox2.Text
    3. End Sub

  4. #4

    Thread Starter
    Member
    Join Date
    Apr 2011
    Posts
    48

    Re: Linking form 1 with form2

    Thank you. It worked

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