944,123 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Marked Solved
  • Views: 5567
  • C# RSS
Oct 16th, 2009
0

image in message box?

Expand Post »
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???
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kadamora is offline Offline
10 posts
since Jan 2009
Oct 16th, 2009
0
Re: image in message box?
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
Reputation Points: 2035
Solved Threads: 645
Senior Poster
ddanbe is offline Offline
3,740 posts
since Oct 2008
Oct 16th, 2009
0
Re: image in message box?
thnx...i think i can do that
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kadamora is offline Offline
10 posts
since Jan 2009
Oct 16th, 2009
2
Re: image in message box?
Any trouble, questions with that? Only one address! DANIWEB!
Lots of succes!
Reputation Points: 2035
Solved Threads: 645
Senior Poster
ddanbe is offline Offline
3,740 posts
since Oct 2008
Oct 17th, 2009
0
Re: image in message box?
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:

C# Syntax (Toggle Plain Text)
  1. System.Windows.Forms.MessageBox.Show ("Danger Will Robinson", "ERROR!",
  2. System.Windows.Forms.MessageBoxButtons.OKCancel,
  3. System.Windows.Forms.MessageBoxIcon.Error);

But these aren't really images.
Reputation Points: 10
Solved Threads: 3
Junior Poster in Training
RunTimeError is offline Offline
54 posts
since Oct 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: Copying data from one database to another
Next Thread in C# Forum Timeline: dynamic Active Directory field list





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC