Question : Check if there is a specific message for an event in the message queue in VB.NET

I am pretty new to .NET programming, and programming in general.
VB.NET question...

Using Visual Studio 2005

I need to check if there is a pending mouse wheel scroll event in the message queue.

I've talked to some experienced programmers who say the background worker component isn't really what I'm looking for.

Essentially I have a bunch of UI elements that are updating in a time-consuming fashion -- if the user spins the mousewheel, I want to discontinue all UI operations.

How can I check during the execution of the UI code whether there is a pending scroll wheel event?

Answer : Check if there is a specific message for an event in the message queue in VB.NET

http://bolsterfarm.com/downloads/BGWorker.zip

Here is code in VB and C#. It will give you a good idea on how to update the UI from the background thread using the ProgressReported method.
Random Solutions  
 
programming4us programming4us