Click here to Skip to main content
12,073,325 members (71,814 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# VB VB.NET icon
i want different icons in my dialog box , is it possible ????
Posted 16-Oct-12 1:11am
Comments
geekbond 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.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

yes. you need to update your icon in resource file
  Permalink  
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
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

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.
  Permalink  
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
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 5

Change it from "Icon" ..... Browse : Select the "ICO" File and you are done !
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Import the Dotnet supported icons in resources and use those icons......... Imported icons will be available in forms properties.
  Permalink  
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......!!!!!!

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160208.1 | Last Updated 23 Oct 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100