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???

Recommended Answers

All 4 Replies

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;)

thnx...i think i can do that :D

Any trouble, questions with that? Only one address! DANIWEB!
Lots of succes!

commented: that's classic +2

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.