C#显示和隐藏鼠标
[DllImport("user32", EntryPoint = "ShowCursor")] public extern static bool ShowCursor(bool show); private void button1_Click(object sender, EventArgs e) { ShowCursor(false);//隐藏鼠标 } private void button2_Click(object sender, EventArgs e) { ShowCursor(true);//显示鼠标 }