Windows Develop Bookmark and Share   
 index > Windows Forms Sample Applications > How to show Exe icon in Picture Box
 

How to show Exe icon in Picture Box

Hi,

In My application i want show Images of Mozilla and Internet icons. When user select any icon it should open selected Browser (like Desk top short cut).

i tried like this

picturebox1.ImageLocation =@"C:\Program Files\Mozilla Firefox\firefox.exe";

But it's showing cross symbol in Picture Box.

Can any please help how can i show.
DKChakravrthy  Tuesday, July 28, 2009 6:23 AM
You can not load icon like this:

Why dont you downloand these icons from internet and load them directoly.

Other way:

You can have a look to this article may be this can help you to extract icons:

http://www.codeproject.com/KB/shell/systemiconsimagelist.aspx


Please mark the post as answer if it is helpfull to you because it boosts the members to answer more and more.
_SuDhiR_  Tuesday, July 28, 2009 6:39 AM
You can not load icon like this:

Why dont you downloand these icons from internet and load them directoly.

Other way:

You can have a look to this article may be this can help you to extract icons:

http://www.codeproject.com/KB/shell/systemiconsimagelist.aspx


Please mark the post as answer if it is helpfull to you because it boosts the members to answer more and more.
_SuDhiR_  Tuesday, July 28, 2009 6:39 AM
Hi Sudhir,

Thanks for reply and from Code project link i got solution.
Once again Thank you very much. :)

DKChakravrthy  Tuesday, July 28, 2009 6:58 AM

You can use google to search for other answers

Custom Search

More Threads

• Server Downtime Part II - 1.2 Client Release Draws Near!
• Is there a standart control for "File, Edit, view, ..."?
• Cast from type 'DataRowView' to type 'String' is not valid.
• PocketVision - Date problems
• Xpander controls license
• Hosted Web Site Login Manager
• Newbie : How to add the Xpander controls ?
• How to add text to DataGrid in a user control?
• Adding the DataAccess WebReference
• find applications and properties that run on PC