文件名称:【VS2010 C# 代码】获取鼠标点击时的位置
文件大小:37KB
文件格式:RAR
更新时间:2020-10-08 10:37:58
VS2010 鼠标 点击
Microsoft Visual Studio 2010做的C#获取鼠标点击时的位置实例,主要代码: private void Form1_MouseClick(object sender, MouseEventArgs e) { Point pointClicked = e.Location; int iX = pointClicked.X; int iY = pointClicked.Y; string sPosition = "(" + iX.ToString() + "," + iY.ToString() + ")"; label1.Text = sPosition; }
【文件预览】:
Demo_mouse_clickedposition
----Demo_mouse_clickedposition()
--------bin()
--------Form1.Designer.cs(2KB)
--------Program.cs(507B)
--------obj()
--------Form1.cs(800B)
--------Demo_mouse_clickedposition.csproj(4KB)
--------Form1.resx(6KB)
--------Properties()
----Demo_mouse_clickedposition.suo(20KB)
----Demo_mouse_clickedposition.sln(920B)