当前位置:首页 > 开发 > C# > 正文内容

获取鼠标坐标位置

C#5年前 (2021-04-19)

方式1

 //获取鼠标光标的位置(以屏幕坐标表示)
    int x = Control.MousePosition.X;    //鼠标x坐标
    int y = Control.MousePosition.Y;    //鼠标y坐标


转载请注明出处。

本文链接:http://pythonopen.com/?id=35

相关文章

C# 获取网页源代码

private static string GetHtml(str...

C# [OnPaint]和[OnPaintBackground]的区别

OnPaint和OnPaintBackground的主要功能区别OnPaint:OnPaint方法主...

C# System.IO.Path

System.IO.Path.GetExtension返回指定的路径字符串的扩展名。string&n...

C# Browsable(bool)

在编程中(比如常见的 C# 语言在开发 Windows Forms 等应用程序时),Browsabl...

C# MemoryStream转为Image

        //...

C# i++和++i的区别

核心区别操作顺序            ...