We have a database component generator written in VB.NET 2008 (3.5 Framework, etc.) which is part of our build process. It can be used interactively (and is hence not a console app), but is generally called (multiple times) by the build scripts.
Previously, each time I ran the application in batch mode it stole focus from whatever else I was doing, ate a couple of key strokes, then returned the focus back to me.
I overrode the ShowWithoutActivation property, but this only worked when I also cleared the "Enable Application Framework" checkbox against the generator application's project.
It took several hours of poking around for me to figure this out. Hopefully reading this will save someone else this time.
AB