I rolled my own dialog in WinForms 2.0 and wanted to use the images that is available when using the MessageBox by way of the MessageBoxIcon enum. To do what I wanted, I used the System.Drawing.SystemIcons class, which exposed static references to several system icons, of course. Here’s an example use of the Warning icon in a PictureBox:
[csharp]
System.Windows.Forms.PictureBox pb = new System.Windows.Forms.PictureBox();
pb.Location = new System.Drawing.Point(14, 7);
pb.Size = new System.Drawing.Size(48, 41);
pb.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
pb.BackgroundImage = System.Drawing.SystemIcons.Warning.ToBitmap();
[/csharp]
System.Drawing.SystemIcons also has Application, Asterisk, Error, Exclamation, Hand, Information, Question, Warning, and WinLogo.
The System.Drawing namespace also has SystemBrushes, SystemColors, SystemFonts, and SystemPens.