c# - MessageBox on the top from all threads -
when application starts, splash screen shown thread. but, in case error during start - message box shown. problem is: messagebox shown under splash. have used iwin32window owner property, tried use messageboxoptions.defaultdesktoponly property, id did not help.
how can manage situation ?
ps: tried create invisible window, set topmost - , show messagebox. did not work.
i created similar situation using multi-threading , used code keep messagebox on top of window. code makes message box top most.
messagebox.show(this, "your text", "settings needed", messageboxbuttons.yesno, messageboxicon.question, messageboxdefaultbutton.button1, (messageboxoptions)0x40000); // mb_topmost flag
Comments
Post a Comment