Click here to Skip to main content
11,496,146 members (833 online)
The site is currently in read-only mode for maintenance. Posting of new items will be available again shortly.
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.
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
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
Change it from "Icon" ..... Browse : Select the "ICO" File and you are done !
  Permalink  
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 Dnyaneshwar@Pune 692
1 RyanDev 230
2 CHill60 163
3 Sascha Lefèvre 145
4 Sergey Alexandrovich Kryukov 124
0 Sergey Alexandrovich Kryukov 10,401
1 OriginalGriff 8,910
2 Sascha Lefèvre 3,899
3 Maciej Los 3,422
4 Richard Deeming 2,600


Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 23 Oct 2012
Copyright © CodeProject, 1999-2015
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