Useful programming how-tos I’ve stumbled across.

Event handling in VB.Net

Getting the item under mouse cursor in a Listview control

Add ListView column and insert ListView rows
The Java2s site doesn’t look like much, but it’s helped me with understanding several pieces of Visual Basic code.

How to use a ContextMenuStrip with a ListView control

Timeouts on the HttpWebRequest (and thus SOAP proxies)

Bookmark and Share

“The BackgroundWorker is currently busy and cannot run multiple tasks concurrently”

The BackgroundWorker is currently busy and cannot run multiple tasks concurrently

*sigh*  One step forward, five steps back. 

As in the words of one forum poster:

BackgroundWorker is pretty much "Threading for Dummies" in that it’s an excellent tool to teach a new programmer how to run work on a second thread and is great for simple tasks; but with it’s simplicity comes the price of flexibility.

If you want to run multiple threads, you really need to use the .Net System.Threading class.

Bookmark and Share

So where is that “Break all processes when one process breaks” option?

Not in Visual Studio 2008 Express, that’s for sure.
No option for debugging

  It’s a VS 2008 Professional option only, and it looks like this:
Break all processes when one process breaks - VS 2008

You need the “Break all processes when one process breaks” option when you are trying to step though a background process.  I want to use background processes as I need to do many file downloads in the background.

And background threads are the only way to do it.

I talk (briefly) about background thread processing in “Sew me a Thread or three.

The software application I’m writing is taking up most of my time, which why blog posts have been a bit lean around here.

Bookmark and Share

APIs new to Windows 7, and other Microsoft operating systems

The list of APIs new to Windows 7, and all the other (previously released) API functions can be found right here:

Functions by Release (MSDN Library)

The PowerSetRequest / PowerRequestAwayModeRequired mode looks particularly interesting.  It seems to be a new power saving mode:

The system enters away mode instead of sleep in response to explicit action by the user. In away mode, the system continues to run but turns off audio and video to give the appearance of sleep.

Bookmark and Share