Error Icon on custom form
-
How do I place the error icon on a custom form?
-
How do I place the error icon on a custom form?
Not sure if this is what you're after, but you can get the standard error icon using the
System.Drawing.SystemIcons.Error
property. You could then draw this onto your custom form during itsOnPaint
method, or using aPictureBox
(although this will probably render badly - removing the icons alpha channel - so your best bet is to draw it manually inOnPaint
). Hope this helps :) Cheers, Will H -
Not sure if this is what you're after, but you can get the standard error icon using the
System.Drawing.SystemIcons.Error
property. You could then draw this onto your custom form during itsOnPaint
method, or using aPictureBox
(although this will probably render badly - removing the icons alpha channel - so your best bet is to draw it manually inOnPaint
). Hope this helps :) Cheers, Will HThanks so much, Will. You're right - using .Image of the PictureBox looks rough. The OnPaint looks better.