M
Matt Gilarde
Guest
The key to many issues where an application loses focus is to make sure that there is always an enabled control in the active window. Once there's no enabled control Windows will select a new foreground window and you lose focus. I've run into this when displaying modal windows, too. The natural thing to do is to disable the main window and then display the modal window but if you do it in that order the application loses focus. What you need to do is display the modal window first and then disable the main window. This way focus is always in an enabled control. I guess I have no real point other than to commiserate about Windows focus issues. I'm glad you were able to figure yours out. stackoverflow is a great resource.
Continue reading...
Continue reading...