C#中如何取得并使用Windows系统图标
1个回答
展开全部
System.Drawing命名空间中有一个SystemIcons类,以静态属性方式提供了使用系统图标的便捷途径:
Public PropertiesNameDescription
ApplicationGets anIconobject that contains the default application icon (WIN32: IDI_APPLICATION).
AsteriskGets anIconobject that contains the system asterisk icon (WIN32: IDI_ASTERISK).
ErrorGets anIconobject that contains the system error icon (WIN32: IDI_ERROR).
ExclamationGets anIconobject that contains the system exclamation icon (WIN32: IDI_EXCLAMATION).
HandGets anIconobject that contains the system hand icon (WIN32: IDI_HAND).
InformationGets anIconobject that contains the system information icon (WIN32: IDI_INFORMATION).
QuestionGets anIconobject that contains the system question icon (WIN32: IDI_QUESTION).
WarningGets anIconobject that contains the system warning icon (WIN32: IDI_WARNING).
WinLogoGets anIconobject that contains the Windows logo icon (WIN32: IDI_WINLOGO).
需要注意的是,它是属于System.Drawing命名空间的,就是说它是GDI+的函数。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询