MessageBox icons

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.
 
A

Alex Feinman [MVP]

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
 
B

Boris Nienke

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top