I've encountered an odd problem that seems to have started when I ported my C# application from VS2003 to VS2005. The application is intended to run as a RunOnce program, and has a simple GUI with two buttons and two textboxes. The problem I'm having is that although one of the textboxes is set to have focus when the program starts, there is an annoying GDI+Window that seems to have focus instead. I don't actually see the window but if I alt-tab it shows up in the application list. If I hit alt-tab once, the intended textbox has the focus and the GDI window disappears (it no longer shows up with alt-tab). If the program runs standalone it works fine.ÃÂ The GDI window only shows up when I run it using RunOnce. This problem does not occur under VS2003.
I've done some web searches and found various references to this phantom GDI+ Windows, but none of the articles applies to my specific problem. It's very easy to duplicate, at least in my environment. If anyone has encountered this problem before and has a suggestion that would be great. Thanks!
View Complete Post