Results 1 to 4 of 4

Thread: Need help setting a value to a textbox in another form

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2010
    Posts
    49

    Need help setting a value to a textbox in another form

    Greetings Everyone,

    I created a small app that shows the problem.

    Form1 shows form2 and form2 shows form3. From form2 I can change the value of the textbox in form1 but from form3 I can't change the textbox value in form2.

    Please can you look at the application and correct it so I can change the value in the textbox of form2 from form3.

    The attached screen dump also shows the problem from a production application I am working on.

    Any help will be greatly appreciated.

    Thanks.

    Truly,
    Emad
    Attached Images Attached Images  
    Attached Files Attached Files

  2. #2
    Lively Member
    Join Date
    Apr 2010
    Posts
    121

    Re: Need help setting a value to a textbox in another form

    This is pretty simple.

    Run this code from where ever you want it!!

    vb Code:
    1. Form2.TextBox1.Text = "Hello"

  3. #3
    Lively Member
    Join Date
    Apr 2010
    Posts
    121

    Re: Need help setting a value to a textbox in another form

    Quote Originally Posted by emadeva View Post
    Greetings Everyone,

    I created a small app that shows the problem.

    Form1 shows form2 and form2 shows form3. From form2 I can change the value of the textbox in form1 but from form3 I can't change the textbox value in form2.

    Please can you look at the application and correct it so I can change the value in the textbox of form2 from form3.

    The attached screen dump also shows the problem from a production application I am working on.

    Any help will be greatly appreciated.

    Thanks.

    Truly,
    Emad
    Plus what exactly is the problem???

  4. #4

    Thread Starter
    Member
    Join Date
    Apr 2010
    Posts
    49

    Re: Need help setting a value to a textbox in another form

    Hi jduncanator,

    In the sample app if you click on the Show Form2 button followed by the Show Form3 button then enter some text in the entry field click the button under the field. The text from entry field does not show up in Form2. If you do the same from Form2 the text will show up in Form1.

    Truly,
    Emad

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