Why can't I get a critical message icon with messagebox?

I’m referring to the red X that displays when using the value 16. Here is a simple script that doesn’t work correctly for me:

import rhinoscriptsyntax as rs
rs.MessageBox(“Why can’t I get a critical stop icon?”,16,“Python training”)

Where there should be the red X, I’m getting the warning icon (48).

Am I missing something basic? All the other style icons work correctly for me.

Thanks,

Dan

For value 16, the function is displaying the System.Windows.Forms.MessageBoxIcon.Exclamation icon instead of the System.Windows.Forms.MessageBoxIcon.Error icon. I’ll see that this fixed.

1 Like

Thanks.

Ah, and here is a noob hack for ya… so ya don’t have to wait for the implementation :wink:

import Rhino
import System
Rhino.UI.Dialogs.ShowMessageBox(“Why can’t I get a critical stop icon?”,“Python training”,0,System.Windows.Forms.MessageBoxIcon.Error)

Thanks.