GTX_AI 发表于 2020-4-25 17:01:53

C#显示和隐藏鼠标

C#显示和隐藏鼠标:https://blog.csdn.net/weixin_30622107/article/details/101509206

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);//显示鼠标
}

页: [1]
查看完整版本: C#显示和隐藏鼠标