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

资源简介


资源截图

代码片段和文件信息

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

namespace TailorAnimation
{
    public partial class Frm_Main : Form
    {
        string strPath;
        public Frm_Main()
        {
            InitializeComponent();
        }

        private void Frm_Main_Load(object sender EventArgs e)
        {
            strPath = Application.StartupPath.Substring(0 Application.StartupPath.Substring(0 Application.StartupPath.LastIndexOf(“\\“)).LastIndexOf(“\\“)); //截取图片所在的文件路径
            pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;  //设置图片的显示类型
            pictureBox1.Image = Image.FromFile(strPath + @“\image\1.jpg“); //为pictureBox1设置显示的图片
        }

        private void timer1_Tick(object sender EventArgs e)
        {
            Random r = new Random();  //声明一个随机类的对象
            pictureBox1.Image = Image.FromFile(strPath + @

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-05-01 16:12  TailorAnimation\
     目录           0  2011-12-22 23:11  TailorAnimation\TailorAnimation\
     文件         935  2013-05-01 16:09  TailorAnimation\TailorAnimation.sln
     文件       15360  2010-11-04 18:51  TailorAnimation\TailorAnimation.suo
     文件       28160  2013-05-01 16:12  TailorAnimation\TailorAnimation.v11.suo
     目录           0  2011-12-22 23:11  TailorAnimation\TailorAnimation\bin\
     目录           0  2013-05-01 16:10  TailorAnimation\TailorAnimation\bin\Debug\
     文件        9216  2013-05-01 16:10  TailorAnimation\TailorAnimation\bin\Debug\TailorAnimation.exe
     文件       22016  2013-05-01 16:10  TailorAnimation\TailorAnimation\bin\Debug\TailorAnimation.pdb
     文件        1173  2010-07-10 21:34  TailorAnimation\TailorAnimation\Frm_Main.cs
     文件        3420  2010-07-10 21:32  TailorAnimation\TailorAnimation\Frm_Main.designer.cs
     文件        6008  2010-07-10 21:32  TailorAnimation\TailorAnimation\Frm_Main.resx
     目录           0  2011-12-22 23:11  TailorAnimation\TailorAnimation\image\
     文件       15971  2009-02-23 21:00  TailorAnimation\TailorAnimation\image\1.jpg
     文件       16101  2009-02-23 21:00  TailorAnimation\TailorAnimation\image\2.jpg
     文件       16086  2009-02-23 21:00  TailorAnimation\TailorAnimation\image\3.jpg
     文件       16189  2009-02-23 21:00  TailorAnimation\TailorAnimation\image\4.jpg
     文件       16069  2009-02-23 21:00  TailorAnimation\TailorAnimation\image\5.jpg
     目录           0  2011-12-22 23:11  TailorAnimation\TailorAnimation\obj\
     目录           0  2013-05-01 16:10  TailorAnimation\TailorAnimation\obj\Debug\
     文件        7182  2013-05-01 16:08  TailorAnimation\TailorAnimation\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     目录           0  2011-12-22 23:11  TailorAnimation\TailorAnimation\obj\Debug\Refactor\
     文件        4027  2013-05-01 16:10  TailorAnimation\TailorAnimation\obj\Debug\TailorAnimation.csproj.FileListAbsolute.txt
     文件         850  2013-05-01 16:10  TailorAnimation\TailorAnimation\obj\Debug\TailorAnimation.csproj.GenerateResource.Cache
     文件        1757  2013-05-01 16:10  TailorAnimation\TailorAnimation\obj\Debug\TailorAnimation.csprojResolveAssemblyReference.cache
     文件        9216  2013-05-01 16:10  TailorAnimation\TailorAnimation\obj\Debug\TailorAnimation.exe
     文件         180  2013-05-01 16:10  TailorAnimation\TailorAnimation\obj\Debug\TailorAnimation.Frm_Main.resources
     文件       22016  2013-05-01 16:10  TailorAnimation\TailorAnimation\obj\Debug\TailorAnimation.pdb
     文件         180  2013-05-01 16:10  TailorAnimation\TailorAnimation\obj\Debug\TailorAnimation.Properties.Resources.resources
     目录           0  2013-05-01 16:08  TailorAnimation\TailorAnimation\obj\Debug\TempPE\
     文件        4608  2013-05-01 16:08  TailorAnimation\TailorAnimation\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
............此处省略8个文件信息

评论

共有 条评论