Click here to Skip to main content
15,879,326 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want different icons in my dialog box , is it possible ????
Posted
Comments
Akinmade Bond 16-Oct-12 13:52pm    
Seems to me like you're trying to build a custom dialog box, that is what you should look into. You cannot change the icons already in the MessageBox dialog.

Change it from "Icon" ..... Browse : Select the "ICO" File and you are done !
 
Share this answer
 
In Application Tab of Project property
Icon--> Browse
Select "ICO" file and Rebuild the project. It will change the Icone of exe.

Addition from another answer by the same poster

Use Custom MessageBox. It will be just a another windows Form which will be called by ShowDialog. Use whatever image you want to use on that form.
 
Share this answer
 
v3
Comments
Nelek 23-Oct-12 8:01am    
Please use the "improve solution" widget to add more information to a previous answer instead of writing more answers. I have the text of your second answer here to keep it clean
Import the Dotnet supported icons in resources and use those icons......... Imported icons will be available in forms properties.
 
Share this answer
 
Comments
philiplobo 16-Oct-12 6:29am    
i have icons in the resource file but i want use those icons on message box
MessageBox.Show("helllooo","welcome",MessageBoxButtons.OK,MessageBoxIcon.Asterisk)
i want use my icons instead of messagebox icon
Anandkumar D 16-Oct-12 6:51am    
no no no, its not possible..................
philiplobo 16-Oct-12 6:53am    
yaa okhey wish it was possible......!!!!!!
yes. you need to update your icon in resource file
 
Share this answer
 
Comments
philiplobo 16-Oct-12 6:23am    
i have icons in the resource file but i want use those icons on message box
MessageBox.Show("helllooo","welcome",MessageBoxButtons.OK,MessageBoxIcon.Asterisk)
i want use my icons instead of messagebox icon

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900