Sytem Icons

  • Thread starter Thread starter John
  • Start date Start date
J

John

Is there a way to place sytem icons suchs as the ones use in a message
bos (i.e exclamiation, information, question, etc) on a form. Is
there a way to do it with =out a picturebox and still control its
position?


THANKS
 
Hi,

1. You can access the basic system icons through the SystemIcons class.
2. The Icon class itself has a ToBitmap method that returns a Bitmap. Call
ToBitmap on any of the SystemIcons.
3. In the paint event for your Form you can use the Graphics object to draw
a Bitmap by calling the DrawImage method, which requires a position to be
specified.
 
Back
Top