如何在 C# 中将光标精确放置在屏幕中心?
无分辨率独立(可以是1024X768或1600X900)
最佳答案
这个怎么样,假设你只有一台显示器:
Cursor.Position = new Point(Screen.PrimaryScreen.Bounds.Width / 2,
Screen.PrimaryScreen.Bounds.Height / 2);
关于c# - 如何将光标放置在屏幕的精确中心,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6356999/