Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# VB.NET icon
i want different icons in my dialog box , is it possible ????
Posted 16-Oct-12 1:11am
Comments
geekbond at 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 at 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 at 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 at 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 at 16-Oct-12 6:51am
   
no no no, its not possible..................
philiplobo at 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
0 OriginalGriff 410
1 Sergey Alexandrovich Kryukov 329
2 Afzaal Ahmad Zeeshan 264
3 BillWoodruff 235
4 CPallini 195
0 OriginalGriff 5,560
1 DamithSL 4,476
2 Maciej Los 3,942
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,175


Advertise | Privacy | Mobile
Web02 | 2.8.141216.1 | Last Updated 23 Oct 2012
Copyright © CodeProject, 1999-2014
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