• 大小: 2.1MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-09-14
  • 语言: C#
  • 标签: 十字光标  定位  坐标  

资源简介

可以使鼠标在窗体的PictureBox上 按照PictureBox中图的坐标来 十字光标 定位,点击后绘制“点击处”在图中坐标的位置

资源截图

代码片段和文件信息

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

namespace MouseLocator
{
    public partial class Color_PictureBox : PictureBox
    {
        public Color_PictureBox()
        {
            InitializeComponent();
            this.Setstyle(Controlstyles.DoubleBuffer |
                         Controlstyles.UserPaint |
                         Controlstyles.AllPaintingInWmPaint
                         true);
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-05-19 09:55  MouseLocator\
     目录           0  2011-05-19 09:55  MouseLocator\MouseLocator\
     文件         925  2011-05-19 09:53  MouseLocator\MouseLocator.sln
     文件       27136  2011-05-20 18:07  MouseLocator\MouseLocator.suo
     目录           0  2011-05-19 09:55  MouseLocator\MouseLocator\bin\
     目录           0  2011-05-19 09:55  MouseLocator\MouseLocator\bin\Debug\
     文件      290816  2011-05-20 14:07  MouseLocator\MouseLocator\bin\Debug\MouseLocator.exe
     文件       40448  2011-05-20 14:07  MouseLocator\MouseLocator\bin\Debug\MouseLocator.pdb
     文件        5632  2005-11-11 22:25  MouseLocator\MouseLocator\bin\Debug\MouseLocator.vshost.exe
     文件         573  2011-05-19 09:52  MouseLocator\MouseLocator\Color_PictureBox.cs
     文件        1129  2011-05-19 09:52  MouseLocator\MouseLocator\Color_PictureBox.Designer.cs
     文件        8239  2011-05-20 14:07  MouseLocator\MouseLocator\Form1.cs
     文件        5643  2011-05-19 09:52  MouseLocator\MouseLocator\Form1.Designer.cs
     文件      402500  2011-05-19 09:38  MouseLocator\MouseLocator\Form1.resx
     文件        3493  2011-05-19 09:52  MouseLocator\MouseLocator\MouseLocator.csproj
     目录           0  2011-05-19 09:55  MouseLocator\MouseLocator\obj\
     目录           0  2011-05-19 09:55  MouseLocator\MouseLocator\obj\Debug\
     文件         842  2011-05-19 10:21  MouseLocator\MouseLocator\obj\Debug\MouseLocator.csproj.GenerateResource.Cache
     文件      290816  2011-05-20 14:07  MouseLocator\MouseLocator\obj\Debug\MouseLocator.exe
     文件      264631  2011-05-19 09:52  MouseLocator\MouseLocator\obj\Debug\MouseLocator.Form1.resources
     文件       40448  2011-05-20 14:07  MouseLocator\MouseLocator\obj\Debug\MouseLocator.pdb
     文件         180  2011-05-19 09:52  MouseLocator\MouseLocator\obj\Debug\MouseLocator.Properties.Resources.resources
     目录           0  2011-05-19 09:55  MouseLocator\MouseLocator\obj\Debug\Refactor\
     目录           0  2011-05-19 09:55  MouseLocator\MouseLocator\obj\Debug\TempPE\
     文件        4608  2011-05-19 09:52  MouseLocator\MouseLocator\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
     文件         842  2011-05-19 09:38  MouseLocator\MouseLocator\obj\Debug\WindowsApplication1.csproj.GenerateResource.Cache
     文件      286720  2011-05-19 09:46  MouseLocator\MouseLocator\obj\Debug\WindowsApplication1.exe
     文件      264631  2011-05-19 09:38  MouseLocator\MouseLocator\obj\Debug\WindowsApplication1.Form1.resources
     文件       32256  2011-05-19 09:46  MouseLocator\MouseLocator\obj\Debug\WindowsApplication1.pdb
     文件         180  2011-05-18 21:32  MouseLocator\MouseLocator\obj\Debug\WindowsApplication1.Properties.Resources.resources
     文件         622  2011-05-20 14:08  MouseLocator\MouseLocator\obj\MouseLocator.csproj.FileList.txt
............此处省略15个文件信息

评论

共有 条评论