C# WinForm 显示 隐藏 鼠标

using System.Runtime.InteropServices;  
 
 
[DllImport("user32.dll", EntryPoint="ShowCursor",CharSet=CharSet.Auto)]   
public extern static void ShowCursor(int status);  

调用ShowCursor(0)或ShowCursor(1)来设置.    只是调用个api.

猜你喜欢

转载自blog.csdn.net/qq_20757489/article/details/86505257