0

hi..i just want to make a messagebox that has an image in but i couldn't find the way.

it tried to make a bitmap of the image and put it on the messagebox like
MessageBox.Show(image);

but it was wrong...any ideas???

3
Contributors
4
Replies
8
Views
8 Years
Discussion Span
Last Post by RunTimeError
0

MessageBox is usefull, but no! You cannot put an image other than the ones provided into it. No problem: create a Form class to imitate the behaviour of the message box. Because it would be a class of your own design, you can do in it what you want;)

0

If you want a unique picture than ddanbe is right.

There are about 5 images..well actually icons rather than you can display in a message box. These are similar to your standard windows error messages. Example:

System.Windows.Forms.MessageBox.Show ("Danger Will Robinson", "ERROR!",
                       System.Windows.Forms.MessageBoxButtons.OKCancel,
                       System.Windows.Forms.MessageBoxIcon.Error);

But these aren't really images.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.