Click here to Skip to main content
15,901,284 members

Articles by dwilliss (Tip/Tricks: 2)

Tip/Tricks: 2

RSS Feed

Average article rating:

No articles have been posted.

Average blogs rating:

No blogs have been submitted.

Average tips rating: 4.83

Desktop Programming
Windows Forms
8 Jan 2010   Updated: 8 Jan 2010   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: CPOL    Views: 9,892     Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
Another way to do something like this is to handle the RowPrePaint event and change the background there. The advantage to doing it this way is that if you have thousands of rows, you don't have to set it for every row at the beginning, which could take a few seconds. This way only sets it for...
General Programming
Threads
23 Jan 2011   Updated: 24 Jan 2011   Rating: 4.67/5    Votes: 5   Popularity: 3.26
Licence: CPOL    Views: 8,500     Bookmarked: 6   Downloaded: 0
Please Sign up or sign in to vote.
In .NET 4.0, you can use:New Concurrent.BlockingCollection(New Queue)This even has an option on the constructor to let you specify a maximum queue depth. If it reaches this depth, a call to Add will block until the consumer thread takes something out of the queue.

Average reference rating:

No reference articles have been posted.

Average project rating:

No projects have been posted.
Web Developer
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.