I am creating a custom messagebox. How can I use system pictures such as Error
, Information
, Warning
and etc, which I see in windows MessageBox
? I want to access them directly!
Take a look at System.Drawing.SystemIcons
. You should find them there.
Then set your PictureBox
(assuming Winforms here) like this:
PictureBox1.Image = System.Drawing.SystemIcons.Warning.ToBitmap();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With