I'm writting my own 'Error Dialog' to handle exceptions on my Forms, I would like to create a template Item of this Dialog and I'm gonna use some images in the Dialog but I don't want to fill the template with external resources.
For the PictureBox I'm using the SystemIcons
Class to get and display the Error Bitmap.
PictureBox_Error.BackgroundImage = SystemIcons.Error.ToBitmap
But as you can see I need more resources for each ToolStripButton
of the image above.
Then my question is:
Exist more Classes to use predefined Icons/Images in .NET Framework like the SystemIcons
Class?, if not, What could be the better way to access/retrieve the Bitmaps stored in Windows resource dll's as Shell32.dll
(which stores all the icons that I need)?, using API or managed code?, which API? ...or which native Class?