MessageBox problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

When I use MessageBox.Show(owner, ...) to display a modal dialog box the
'bong' sound is made immediately but the message box is not painted. For
some reason, pressing the ALT key will cause the message box to appear.

The application contains around 15 windows forms, spread over all the screen
space on three monitors. I know that the message box is not being painted
behind one of these forms as I deliberatlely left space on the screen where
it would appear and it appeared when I pressed ALT, but not before. So it is
not an issue with the Topmost property of the forms.

Any ideas? The problem occurs with every message box in the application. I
think it is related to the amount of painting going on since if I minimise
all the forms in the application except the one that will display the message
box it works. However, even when all displayed the forms appear to be
repainting correctly so I have no idea how to correct this issue...

Cheers,

David
 
Does anyone have any thoughts on this? Has anyone else ever experienced this?
It has me totally stumped... Especially as to why the ALT key should have
anything to do with it...
 
Back
Top