亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

C#簡單獲取全屏中鼠標(biāo)焦點(diǎn)位置坐標(biāo)的方法示例

 更新時(shí)間:2017年07月04日 11:47:32   作者:a771948524  
這篇文章主要介紹了C#簡單獲取全屏中鼠標(biāo)焦點(diǎn)位置坐標(biāo)的方法,涉及C#針對(duì)鼠標(biāo)位置Position屬性的簡單操作技巧,需要的朋友可以參考下

本文實(shí)例講述了C#簡單獲取全屏中鼠標(biāo)焦點(diǎn)位置坐標(biāo)的方法。分享給大家供大家參考,具體如下:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Threading;
namespace ConsoleApplication1
{
  class Program
  {
    static void Main(string[] args)
    {
      ///獲取桌面大小
      //Rectangle rect = System.Windows.Forms.SystemInformation.VirtualScreen;
      //int width = rect.Width;
      //int height = rect.Height;
      ///循環(huán)取點(diǎn)
      while (true) {
        Point p = System.Windows.Forms.Cursor.Position;
        Console.WriteLine(p.X + ":" + p.Y);
        Thread.Sleep(100);
        Console.Clear();
      }
    }
  }
}

更多關(guān)于C#相關(guān)內(nèi)容感興趣的讀者可查看本站專題:《C#常見控件用法教程》、《WinForm控件用法總結(jié)》、《C#數(shù)據(jù)結(jié)構(gòu)與算法教程》、《C#面向?qū)ο蟪绦蛟O(shè)計(jì)入門教程》及《C#程序設(shè)計(jì)之線程使用技巧總結(jié)

希望本文所述對(duì)大家C#程序設(shè)計(jì)有所幫助。

相關(guān)文章

最新評(píng)論