• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 205
  • Last Modified:

vb.net 2008: update listbox control from multiple sources

I need to update a listbox control from multiple sources.  What is the best way to do this to avoid 2 competing updates?
0
dhenderson12
Asked:
dhenderson12
1 Solution
 
dhenderson12Author Commented:
OK, I wasn't clear in my question.  I have 2 classes, each of which monitors a serial connection (com1 and com2).  I need to post the data from each serial port in a common listbox, so I'm concerned about "collision" and was wondering what the best way to do this.
0
 
CodeCruiserCommented:
One way is to use a Queue class. Both classes queue information to the queue and the main thread can dequeue the info and update UI.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now