MessageBox not showing with MessageBoxOptions.ServiceNotification

python
dynamo

#1

Hi All,

The message box below doesn’t pop up if I have MessageBoxOptions.ServiceNotification

All good if I remove it but I’m trying to have the MessageBox always showing in front.
is there another way to achieve that?

import clr
clr.AddReference("System.Windows.Forms")
clr.AddReference("System.Drawing")

from System.Windows.Forms import  MessageBox , MessageBoxButtons , MessageBoxIcon , MessageBoxOptions , MessageBoxDefaultButton 

MessageBox.Show("Hello","Hello", MessageBoxButtons.YesNo , MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1, MessageBoxOptions.ServiceNotification)

#2

Have you looked at the “TopMost” property for the messagebox, as this should allow the messagebox to be predominately at the front when you set it to True


#3

Does it have one?