Results 1 to 15 of 15

Thread: [RESOLVED] [2005] Textbox help

Hybrid View

  1. #1
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: [2005] Textbox help

    Quote Originally Posted by Phreak
    Hello everyone,

    Ok so I am trying out this code; link but I stumbled upon an error..

    I want to put the text of "textbox1" (or the vdata string) into a textbox
    on another form (form2). Now, this is ezmode;

    Code:
    form2.textbox.text = textbox1.text
    Ofcourse this isnt working, can anyone tell me why ?
    Is it because it runs on another thread ?
    Hi,

    You can try this:

    vb.net Code:
    1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    2.         Dim Form2 As New Form2
    3.         Form2.Label1.Text = TextBox1.Text
    4.         Form2.Show()
    5.     End Sub

    Wkr,

    sparrow1
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  2. #2

    Thread Starter
    Addicted Member Phreak's Avatar
    Join Date
    Oct 2005
    Location
    Netherlands
    Posts
    132

    Re: [2005] Textbox help

    Thanks again for all the reply's everyone!..

    Ok I have tried everything, but its not putting any text in the
    textbox.

    I think its because part of the code is running on another thread.
    When I put a simple "form2.textbox.text = "hello"" into the form_load
    event. It works, but when I put that code into the "Private Sub UDPArrival"
    the code doesnt work...

    Anyone of you guys/girls has a Linksys router ?
    If i gave you good code/help, then dont forget to RATE
    Dont forget to mark your thread [Resolved] with the tools from the menu above...

  3. #3

    Thread Starter
    Addicted Member Phreak's Avatar
    Join Date
    Oct 2005
    Location
    Netherlands
    Posts
    132

    Re: [2005] Textbox help

    Ok.. I fixxed it, and my code is now working as it should be.

    I restarted my computer, did a rebuild of my code. And it was working!
    Did not changed any code, very strange...


    Thanks for all the help !
    If i gave you good code/help, then dont forget to RATE
    Dont forget to mark your thread [Resolved] with the tools from the menu above...

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