|
-
March 31st, 2003, 05:56 AM
#1
Updating listBox from another thread.
Hi,
I have read and read and am still confused.
I have a simple windows forms application that on a button press spawns a new thread whic in turn starts up a multicast listener. I am 99.9% sure this is working fine, however in my main thread I draw the GUI hich includes a list Box. The problems are arising when i try to update the ListBox with the data received from the multicast listener. The application reports that it basically doesn't know what the list box is.
Any ideas or pointers would be greatly appreciated. Code examples even more greatly received!!
thanks in advance
Andy
-
April 1st, 2003, 02:35 AM
#2
-
April 1st, 2003, 12:20 PM
#3
Maybe, if you post some code I can spot something.
-
April 1st, 2003, 01:23 PM
#4
AndyHey,
for what purpose you are using Thread for ? isn't it possible thru Timers. which has less overcode !!!!
Paresh
- Software Architect
-
April 17th, 2003, 11:11 AM
#5
threading problem
I think you should take care of the threading issues when trying to modify something on a form. Have a look at this page:
http://msdn.microsoft.com/library/de...ms06112002.asp
Hope this helps.
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
|