Showing a MessageBox on form w/ FormBorderStyle.None shows wrong menuin footer

  • Thread starter Thread starter Chris Karcher
  • Start date Start date
C

Chris Karcher

I've got an application that has a non-fullscreen dialog using
FormBorderStyle.None. This dialog will sometimes show a message box
and when it does, a menu will be shown down in the footer from an
entirely different application. To reproduce:

1) Create a new project and set the FormBorderStyle on the main form
to None.
2) Add a button that will pop a message box with some text.
3) Activate an application on your device, such as the File Explorer.
4) Launch your application from Visual Studio and click your
MessageBox button.

You'll see the File Explorer's menu shown at the bottom.

If you change the FormBorderStyle to FixedSingle, you'll always see
the correct menu. Unfortunately, making this dialog non-fullscreen
isn't an option for me.

Does anyone have a way to change this behavior?
 
Back
Top