CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2003
    Posts
    2

    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

  2. #2
    Join Date
    Mar 2003
    Posts
    2
    anyone?

  3. #3
    Join Date
    May 1999
    Posts
    226
    Maybe, if you post some code I can spot something.

  4. #4
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890
    AndyHey,

    for what purpose you are using Thread for ? isn't it possible thru Timers. which has less overcode !!!!

    Paresh
    - Software Architect

  5. #5
    Join Date
    Jul 2002
    Location
    EU
    Posts
    68

    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
  •  





Click Here to Expand Forum to Full Width

Featured