Results 1 to 3 of 3

Thread: relationship

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2002
    Location
    Pilipinas
    Posts
    441

    relationship

    I run my VB.NET program. The Startup form is the Form1. Form1 has a TextBox1 control.
    Then I show the Form2. I put this code to change the Form1's TextBox1 Text.
    Dim aForm As New Form1()
    aForm.TextBox1.Text = "The quick brown fox"
    But the Form1's TextBox1 display nothing.
    Kindly help with this code?

  2. #2
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Reading, UK
    Posts
    870
    Dim frmForm As New Form2()
    frmForm.TextBox1.Text = "hello"
    frmForm.Show()

    works for me.


    Nick
    www.vb-tech.com
    .Net Freelance Development
    http://weblog.vb-tech.com/nick
    My blog

  3. #3
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by nswan
    Dim frmForm As New Form2()
    frmForm.TextBox1.Text = "hello"
    frmForm.Show()
    works for me.
    Nick
    He's doing the opposite I think . Try this post , it should solve your problem . http://www.vbforums.com/showthread.p...values+to+form

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