Results 1 to 3 of 3

Thread: help needed in values passing

  1. #1

    Thread Starter
    Fanatic Member karthikeyan's Avatar
    Join Date
    Oct 2005
    Location
    inside .net
    Posts
    919

    help needed in values passing

    hi,

    i have two forms(form1,form2) in my project.

    in form1 i have one text box and one button

    in form2i have one text box and one button

    so if i type some thing in form1 text box and press button it should open second form and the name which entred in form1'textbox should be displayed in form2's textbox.[note :form1 sholud not be closed] then if i change the text in form2's textbox and press the button form2 should be closed and form1 should be appeared and the text entered in form2's textbox should be displayed in form1's text box

    please how to do this i know how to pass the values between forms but am confusing going to form2 from form1 and camming back to form1 from form2 .so please show me some sample code for the scnario which i have mentioned please
    Loving dotnet

  2. #2
    Fanatic Member vbasicgirl's Avatar
    Join Date
    Jan 2004
    Location
    Manchester, UK
    Posts
    1,016

    Re: help needed in values passing

    In Form1
    Code:
    Form2.TextBox1.Text = Me.TextBox1.Text
    Form2.Show()
    In Form2
    Code:
    Form1.TextBox1.Text = Me.TextBox1.Text
    Me.Close()
    Casey.

  3. #3
    Registered User nmadd's Avatar
    Join Date
    Jun 2007
    Location
    U.S.A.
    Posts
    1,676

    Re: help needed in values passing


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