• 大小: 0.04M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: winform  

资源简介

winform程序 实现了 十字光标定位

资源截图

代码片段和文件信息

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

namespace CrossCursor
{
    public partial class Frm_Main : Form
    {
        public Frm_Main()
        {
            InitializeComponent();
        }
        Image myImage;
        private void button1_Click(object sender EventArgs e)
        {
            //设置文件的类型
            openFileDialog1.Filter = “*.jpg*.jpeg*.bmp*.gif*.ico*.png*.tif*.wmf|*.jpg;*.jpeg;*.bmp;*.gif;*.ico;*.png;*.tif;*.wmf“;
            openFileDialog1.ShowDialog();  //打开文件对话框
            myImage = System.Drawing.Image.FromFile(openFileDialog1.FileName);  //根据文件的路径实例化Image类
            pictureBox1.I

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-12-22 23:11  CrossCursor\
     文件         923  2013-05-06 10:47  CrossCursor.sln
     文件       14336  2010-11-04 18:46  CrossCursor.suo
     目录           0  2011-12-22 23:11  CrossCursor\bin\
     目录           0  2013-05-06 10:55  CrossCursor\bin\Debug\
     文件        9728  2013-05-06 10:55  CrossCursor\bin\Debug\CrossCursor.exe
     文件       24064  2013-05-06 10:55  CrossCursor\bin\Debug\CrossCursor.pdb
     文件        3991  2013-05-06 10:47  CrossCursor\CrossCursor.csproj
     文件        2157  2010-07-10 21:13  CrossCursor\Frm_Main.cs
     文件        3385  2010-07-09 16:37  CrossCursor\Frm_Main.designer.cs
     文件        6017  2010-07-09 16:37  CrossCursor\Frm_Main.resx
     目录           0  2011-12-22 23:11  CrossCursor\obj\
     目录           0  2013-05-06 10:55  CrossCursor\obj\Debug\
     文件        2304  2013-05-06 10:55  CrossCursor\obj\Debug\CrossCursor.csproj.FileListAbsolute.txt
     文件         850  2013-05-06 10:55  CrossCursor\obj\Debug\CrossCursor.csproj.GenerateResource.Cache
     文件        1757  2013-05-06 10:55  CrossCursor\obj\Debug\CrossCursor.csprojResolveAssemblyReference.cache
     文件        9728  2013-05-06 10:55  CrossCursor\obj\Debug\CrossCursor.exe
     文件         180  2013-05-06 10:55  CrossCursor\obj\Debug\CrossCursor.Frm_Main.resources
     文件       24064  2013-05-06 10:55  CrossCursor\obj\Debug\CrossCursor.pdb
     文件         180  2013-05-06 10:55  CrossCursor\obj\Debug\CrossCursor.Properties.Resources.resources
     文件        7158  2013-05-06 10:47  CrossCursor\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     目录           0  2011-12-22 23:11  CrossCursor\obj\Debug\Refactor\
     目录           0  2013-05-06 10:47  CrossCursor\obj\Debug\TempPE\
     文件        4608  2013-05-06 10:47  CrossCursor\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
     文件         495  2010-07-09 16:37  CrossCursor\Program.cs
     目录           0  2011-12-22 23:11  CrossCursor\Properties\
     文件        1354  2010-07-09 16:34  CrossCursor\Properties\AssemblyInfo.cs
     文件        2862  2013-05-06 10:47  CrossCursor\Properties\Resources.Designer.cs
     文件        5612  2010-07-09 16:34  CrossCursor\Properties\Resources.resx
     文件        1111  2013-05-06 10:47  CrossCursor\Properties\Settings.Designer.cs
     文件         249  2010-07-09 16:34  CrossCursor\Properties\Settings.settings
............此处省略0个文件信息

评论

共有 条评论