|
-
Oct 19th, 2008, 01:10 PM
#1
Re: [2005] Textbox help
 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:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Form2 As New Form2
Form2.Label1.Text = TextBox1.Text
Form2.Show()
End Sub
Wkr,
sparrow1
-
Oct 20th, 2008, 03:30 AM
#2
Thread Starter
Addicted Member
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...
-
Oct 20th, 2008, 06:27 AM
#3
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|