How to put ArcGIS Pro MessageBox in Front of "Creating Features" ProgressBar?

87
2
06-27-2022 11:36 AM
MohammedHilal_K
New Contributor II

Hi,

 

is it possible to put an ArcGIS.Desktop.Framework.Dialogs.MessageBox in front of the "Creating Feature" ProgressBar while using RowCreatedEvent?

0 Kudos
2 Replies
DavidMrázek
Occasional Contributor II

Hi,

I don't know exactly if this is meant, but this MessageBox will appear in front of all open windows.

 MessageBox.Show("Correct", "Warning", MessageBoxButtons.OKCancel, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1,
                    MessageBoxOptions.ServiceNotification);
0 Kudos
MohammedHilal_K
New Contributor II

When I'm trying to add System.Windows.MessageBoxOptions.ServiceNotification, am getting error message. 
here is the code.

 

MessageBox.Show("Correct", "Warning", System.Windows.MessageBoxButtons.OK,System.Windows.MessageBoxImage.Warning,System.Windows.MessageBoxOptions.ServiceNotification)

 

 

When I use, System.Windows.MessageBox.Show(........)  am getting the message box in-front of all the windows. But the UI of the Messagebox is like normal windows form, not the ArcGIS Pro UI. 

0 Kudos