1 代码
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace TestControls
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}
[DllImport("user32.dll", CharSet = CharSet.Auto)]
private static extern bool MessageBeep(uint type);
[DllImport("Shell32.dll")]
public extern static int ExtractIconEx(string libName, int iconIndex, IntPtr[] largeIcon, IntPtr[] smallIcon, int nIcons);
public static IntPtr[] largeIcon;
public static IntPtr
本文介绍如何在C#中获取系统的图标资源,包括具体的代码实现和实际运行的效果展示,帮助开发者掌握这一功能。
订阅专栏 解锁全文
466

被折叠的 条评论
为什么被折叠?



