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

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top