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

资源简介


C#图片浏览(支持鼠标拖动与滚轮缩放)

资源截图

代码片段和文件信息

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

namespace PicView
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void panel1_MouseEnter(object sender EventArgs e)
        {
            pictureBox1.Focus();
        }

        private void panel1_MouseLeave(object sender EventArgs e)
        {
            if (IsMouseInPanel())
            {
                if (timer1 != null)
                {
                    timer1.Dispose();
                }
                InitialTimer1();
            }
            else
            {
                this.la

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

     文件      77824  2010-09-17 13:43  PicView\PicView\bin\Debug\PicView.exe

     文件      38400  2010-09-17 13:43  PicView\PicView\bin\Debug\PicView.pdb

     文件       5632  2005-12-08 14:51  PicView\PicView\bin\Debug\PicView.vshost.exe

     文件      10043  2010-09-17 13:43  PicView\PicView\Form1.cs

     文件      10026  2010-09-17 13:43  PicView\PicView\Form1.Designer.cs

     文件       9632  2010-09-17 13:43  PicView\PicView\Form1.resx

     文件        897  2010-09-17 13:43  PicView\PicView\obj\Debug\PicView.csproj.GenerateResource.Cache

     文件      77824  2010-09-17 13:43  PicView\PicView\obj\Debug\PicView.exe

     文件       2906  2010-09-17 13:43  PicView\PicView\obj\Debug\PicView.Form1.resources

     文件      38400  2010-09-17 13:43  PicView\PicView\obj\Debug\PicView.pdb

     文件      49629  2010-09-14 17:22  PicView\PicView\obj\Debug\PicView.Properties.Resources.resources

     文件      16384  2010-09-17 10:43  PicView\PicView\obj\Debug\Refactor\PicView.exe

     文件       4608  2010-09-15 09:58  PicView\PicView\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll

     文件        508  2010-09-17 13:44  PicView\PicView\obj\PicView.csproj.FileListAbsolute.txt

     文件       3349  2010-09-14 15:24  PicView\PicView\PicView.csproj

     文件        466  2010-09-14 14:33  PicView\PicView\Program.cs

     文件       1176  2010-09-14 14:33  PicView\PicView\Properties\AssemblyInfo.cs

     文件       3116  2010-09-15 09:58  PicView\PicView\Properties\Resources.Designer.cs

     文件       6229  2010-09-14 15:19  PicView\PicView\Properties\Resources.resx

     文件       1092  2010-09-14 14:33  PicView\PicView\Properties\Settings.Designer.cs

     文件        249  2010-09-14 14:33  PicView\PicView\Properties\Settings.settings

     文件      49127  2010-09-14 15:19  PicView\PicView\Resources\201001231305484375000.jpg

     文件        910  2010-09-17 13:41  PicView\PicView.sln

    ..A..H.     30720  2010-09-17 13:42  PicView\PicView.suo

     目录          0  2010-09-17 10:43  PicView\PicView\obj\Debug\Refactor

     目录          0  2010-09-15 09:58  PicView\PicView\obj\Debug\TempPE

     目录          0  2010-09-14 17:22  PicView\PicView\bin\Debug

     目录          0  2010-09-17 13:43  PicView\PicView\obj\Debug

     目录          0  2010-09-14 14:33  PicView\PicView\bin

     目录          0  2010-09-14 17:22  PicView\PicView\obj

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

评论

共有 条评论