• 大小: 0.04M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 鼠标  区域  

资源简介

限定鼠标工作区域

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ControlMouseRange
{
    public partial class Frm_Main : Form
    {
        public Frm_Main()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender EventArgs e)//限制鼠标活动区域
        {
            this.Cursor = new Cursor(Cursor.Current.Handle);//创建Cursor对象
            Cursor.Position = new Point(Cursor.Position.X Cursor.Position.Y);//设置鼠标位置
            Cursor.Clip = new Rectangle(this.Location this.Size);//设置鼠标的活动区域
        }

        private void button2_Click(object sender EventArgs e)//解除对鼠标活动区域的限制
        {
          

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       9216  2016-12-22 03:36  ControlMouseRange\ControlMouseRange\bin\Debug\ControlMouseRange.exe

     文件      30208  2016-12-22 03:36  ControlMouseRange\ControlMouseRange\bin\Debug\ControlMouseRange.pdb

     文件      14328  2016-12-22 03:36  ControlMouseRange\ControlMouseRange\bin\Debug\ControlMouseRange.vshost.exe

     文件        490  2016-12-22 03:36  ControlMouseRange\ControlMouseRange\bin\Debug\ControlMouseRange.vshost.exe.manifest

     文件       4003  2016-12-21 17:48  ControlMouseRange\ControlMouseRange\ControlMouseRange.csproj

     文件       1130  2016-12-21 17:48  ControlMouseRange\ControlMouseRange\Frm_Main.cs

     文件       3017  2016-12-21 17:48  ControlMouseRange\ControlMouseRange\Frm_Main.designer.cs

     文件       5814  2016-12-21 17:48  ControlMouseRange\ControlMouseRange\Frm_Main.resx

     文件       2225  2016-12-22 03:36  ControlMouseRange\ControlMouseRange\obj\Debug\ControlMouseRange.csproj.FileListAbsolute.txt

     文件        850  2016-12-22 03:36  ControlMouseRange\ControlMouseRange\obj\Debug\ControlMouseRange.csproj.GenerateResource.Cache

     文件       9216  2016-12-22 03:36  ControlMouseRange\ControlMouseRange\obj\Debug\ControlMouseRange.exe

     文件        180  2016-12-22 03:36  ControlMouseRange\ControlMouseRange\obj\Debug\ControlMouseRange.Frm_Main.resources

     文件      30208  2016-12-22 03:36  ControlMouseRange\ControlMouseRange\obj\Debug\ControlMouseRange.pdb

     文件        180  2016-12-22 03:36  ControlMouseRange\ControlMouseRange\obj\Debug\ControlMouseRange.Properties.Resources.resources

     文件       7056  2016-12-22 03:36  ControlMouseRange\ControlMouseRange\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       4608  2016-12-22 04:18  ControlMouseRange\ControlMouseRange\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll

     文件        501  2016-12-21 17:48  ControlMouseRange\ControlMouseRange\Program.cs

     文件       1366  2016-12-21 21:17  ControlMouseRange\ControlMouseRange\Properties\AssemblyInfo.cs

     文件       2874  2016-12-21 21:17  ControlMouseRange\ControlMouseRange\Properties\Resources.Designer.cs

     文件       5612  2016-12-21 21:17  ControlMouseRange\ControlMouseRange\Properties\Resources.resx

     文件       1117  2016-12-21 21:17  ControlMouseRange\ControlMouseRange\Properties\Settings.Designer.cs

     文件        249  2016-12-21 21:17  ControlMouseRange\ControlMouseRange\Properties\Settings.settings

     文件        941  2016-12-21 16:09  ControlMouseRange\ControlMouseRange.sln

     目录          0  2016-12-22 04:18  ControlMouseRange\ControlMouseRange\obj\Debug\Refactor

     目录          0  2016-12-22 04:18  ControlMouseRange\ControlMouseRange\obj\Debug\TempPE

     目录          0  2016-12-22 03:36  ControlMouseRange\ControlMouseRange\bin\Debug

     目录          0  2016-12-22 03:36  ControlMouseRange\ControlMouseRange\bin\Release

     目录          0  2016-12-22 04:18  ControlMouseRange\ControlMouseRange\obj\Debug

     目录          0  2016-12-22 03:36  ControlMouseRange\ControlMouseRange\bin

     目录          0  2016-12-22 03:36  ControlMouseRange\ControlMouseRange\obj

............此处省略6个文件信息

评论

共有 条评论