image in message box?

Please support our C# advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Jan 2009
Posts: 8
Reputation: kadamora is an unknown quantity at this point 
Solved Threads: 0
kadamora kadamora is offline Offline
Newbie Poster

image in message box?

 
0
  #1
Oct 16th, 2009
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???
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,056
Reputation: ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of 
Solved Threads: 312
ddanbe's Avatar
ddanbe ddanbe is offline Offline
Postaholic
 
0
  #2
Oct 16th, 2009
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
Today is a gift, that's why it is called "The Present".
Make love, no war. Cave ab homine unius libri.
Danny
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 8
Reputation: kadamora is an unknown quantity at this point 
Solved Threads: 0
kadamora kadamora is offline Offline
Newbie Poster
 
0
  #3
Oct 16th, 2009
thnx...i think i can do that
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,056
Reputation: ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of 
Solved Threads: 312
ddanbe's Avatar
ddanbe ddanbe is offline Offline
Postaholic
 
2
  #4
Oct 16th, 2009
Any trouble, questions with that? Only one address! DANIWEB!
Lots of succes!
Today is a gift, that's why it is called "The Present".
Make love, no war. Cave ab homine unius libri.
Danny
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 37
Reputation: RunTimeError is an unknown quantity at this point 
Solved Threads: 3
RunTimeError RunTimeError is offline Offline
Light Poster
 
0
  #5
Oct 17th, 2009
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:

  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.
Reply With Quote Quick reply to this message  
Reply

Tags
c#, messagebox

This thread has been marked solved.
Perhaps start a new thread instead?
Message:




Views: 588 | Replies: 4
Thread Tools Search this Thread



Tag cloud for c#, messagebox
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC