[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 312
  • Last Modified:

Messagebox.show minimize my application...

hi

i use the messagebox.show to show some message to users but when the user click on "yes", "no" or "cancel"
the application is minimized...

how is it possible?

here is the string :

MessageBox.Show("Error", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly, False)
0
Dnx_7
Asked:
Dnx_7
1 Solution
 
LordWabbitCommented:
MessageBoxOptions.DefaultDesktopOnly is the problem here if you use 0 instead (the default default) it stops minimizing the application.
0
 
Dnx_7Author Commented:
Great!!! you were right!!!

thank you very much!
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now