C#: Method for retrieving an Icon from an Application

已取消 已发布的 Oct 17, 2009 货到付款
已取消 货到付款

Hi,

we need a simple method in C#.

Each program that is installed in Windows is listed as an uninstall entry in the registry. We need a method that allows us to get the icon for each of those entries:

/// <summary>

/// Get an icon belonging to a application

/// </summary>

/// <param name="uninstallKey">

/// The uninstall information of the application

/// a example key might be

"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{90176341-0A8B-4CCC-A78D-F862228A6B95}"

///

/// </param>

/// <returns>the image data of this specific application</returns>

public static Image GetApplicationIcon(RegistryKey uninstallKey)

{

//Get the icon of a application

//Sometimes there is a key value named "DisplayIcon" that contains the information about the icon the be returned

//If there is no value named "DisplayIcon" there must be another way to get the Icon

//For example the Windows uninstaller always knows the Icons to be displayed

return <the icon for the application>

}

.NET C# 编程 视窗桌面

项目ID: #530496

关于项目

4个方案 远程项目 活跃的Oct 26, 2009

有4名威客正在参与此工作的竞标,均价$56/小时

rajtuhin1

I already have this code in C#.

$30USD 在1天里
(204条评论)
7.3
msganti

Hi...Please check pmb

$75 USD 在3天内
(2条评论)
3.0
Janjua122

• Over 3 years of Industry experience in providing User Interface & User Experience Design and Development with most usable enterprise wide applications. • Specialized in software development, Front End Development a 更多

$70 USD 在3天内
(1条评论)
2.0
manish2801

Hi, I have 2+ yr exp in development. The application can be developed in the given time frame.

$50 USD 在3天内
(0条评论)
0.0