
ColorDialog and MessageBox not displaying properly?
Posted Tuesday, 7 April, 2009 - 17:33 by archanox inI just switched my project over to OpenTK from Tao since I was having some trouble getting it to render text properly. I'm using Windows.Forms with an embedded GLControl, and the application goes fullscreen. Things are working quite well under OpenTK but I noticed a really odd bug pop up. When I'm calling ShowDialog() on a ColorDialog or Show() on a MessageBox, they aren't showing up, they seem to be behind the application. If I hit the alt button, they come to front and I'm able to use them properly. What's even more odd is that I have several OpenFileDialog that show up just fine when I ShowDialog(). Any idea why something like this might be happening?


Comments
Re: ColorDialog and MessageBox not displaying properly?
AFAIK, Windows don't allow dialogs to appear on top of fullscreen applications. I have seen the same behaviour in other applications, where pressing 'alt' brings the dialog box on top - I guess this is somehow linked to the input focus.
Some things to try: