How do I display a standard windows error icon for a custom exception handler?

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 http://blogs.sun.com/coreqa/resource/other/report-exception.jpg

Answers


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


Need Your Help

Extract attribute of an element from XML

java xml xpath

I am trying to extract the "ref" info for each "nd" under element "way". I have tried to used regular java xml parser and XPath but still cannot figure out how to retrieve multiple child nodes.

How can i display images from document directory to image view?

iphone objective-c ios5 uiimageview

I want to display my images from document directory... i got the contents of directory.