views:

22

answers:

1

As the title suggests, I just want to display a standard windows error icon for a custom exception handler. What the easiest way to achieve this using WPF?

For example, the red cross in this dialog:

alt text

+4  A: 

Have a look in System.Drawing.SystemIcons. All the standard dialog icons are there for your use.

Charlie Salts
Is there a standard control I could use to display it?
Jon Cage
Got it. A `PictureBox` control and then call `m_errorPicture->Image = System::Drawing::SystemIcons::Error->ToBitmap()`.
Jon Cage