Messagebox has separate button on taskbar

303
0
10-02-2019 07:47 AM
BerendVeldkamp
Occasional Contributor II

I noticed that the native ArcGIS MessageBoxes have their own button on the Windows taskbar (e.g. the 'Do you want to save...' box when closing Pro). This can be somewhat confusing for users, especially when the setting to group taskbar buttons is not enabled, so I was wondering if it it possible to change this behavior.

Example:

BerendVeldkamp_0-1706255899731.png

 

 

One thing that is very annoying happens when hovering the mouse over the taskbar button, and then hovering over the MessageBox thumbnail; all other windows, including the ArcGIS Main window, will now be hidden (default Windows 10 and 11 behavior).

 

The same happens when showing a MessageBox from an add-in. It doesn't seem to matter if I set the parent window or not:

 

ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show(Application.Current.MainWindow, "Message");‍

 

Note that unfortunately I'm still working with 2.2, so if anyone can confirm whether this is fixed in a later version, that's OK too.

 

Update 16-1-2024: I'm at 3.1.0 now, and this behavior has not changed

Tags (2)
0 Replies