日期:2014-05-18 浏览次数:20840 次
using System.Runtime.InteropServices; [DllImport("User32")] static extern IntPtr FindWindow(string className, string windowName); [DllImport("User32")] static extern bool SetWindowText(IntPtr hwnd, string windowName); private void Form1_Load(object sender, EventArgs e) { SetWindowText(FindWindow("CabinetWClass", null), "哈哈哈哈"); }