MessageBox icons

  • Thread starter Thread starter Thore Berntsen
  • Start date Start date
T

Thore Berntsen

I would like to use the icons that are displayed in the MessageBox on other
forms. I guess they are stored in some resource somewhere. How can I load
these icons from this resource and displat them on a form?

Thore Berntsen.
 
Not with managed API. If you are ok with P/Invoking the drawing function,
you can get these icons by calling LoadIcon( null, (IntPtr)iconID)
where iconID is one of the:
IDI_APPLICATION 32512
IDI_HAND 32513
IDI_QUESTION 32514
IDI_EXCLAMATION 32515
IDI_ASTERISK 32516
 
if you need it manages:
- make a small test application to show a messagebox with all icons (one
after the other)
- make screen-shots
- cut out the icons on the desktop and create new GIF-Files
- put them into an ImageList

Boris
 
Back
Top