资源简介

该案例是C#界面实现加载某路径文件夹所有图片并自动播放功能

资源截图

代码片段和文件信息

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

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();   
            
        }
        private void richTextBox1_TextChanged(object sender EventArgs e)
        {

        }
        
        private string[] file=null;
        private int index;
        private int intImageWidth;
        private int intImageHeight;
        private void Form1_Load(object sender EventArgs e)
        {
            timer1.Interval = 1000;
            textBox2.Text = timer1.Interval.ToString();
            comboBox1.DropDownstyle = ComboBoxstyle.DropDownList;
            comboBox1.Items.Add(“原始图片大小显示“);
            comboBox1.Items.Add(“适应窗口大小显示“);
 

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

     文件       5085  2020-06-06 15:03  加载图片\Form1.cs

     文件       9282  2020-06-06 15:03  加载图片\Form1.Designer.cs

     文件       6219  2020-06-06 15:03  加载图片\Form1.resx

    ..A..H.     58368  2020-06-06 15:07  加载图片\WindowsFormsApplication1\.vs\WindowsFormsApplication1\v14\.suo

     文件        189  2020-06-03 10:49  加载图片\WindowsFormsApplication1\WindowsFormsApplication1\App.config

     文件      14336  2020-06-09 19:52  加载图片\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe

     文件        189  2020-06-03 10:49  加载图片\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe.config

     文件      26112  2020-06-09 19:52  加载图片\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.pdb

     文件      22696  2020-06-09 19:54  加载图片\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe

     文件        189  2020-06-03 10:49  加载图片\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe.config

     文件        490  2015-10-22 09:54  加载图片\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe.manifest

     文件       4596  2020-06-04 18:31  加载图片\WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs

     文件       9319  2020-06-04 17:44  加载图片\WindowsFormsApplication1\WindowsFormsApplication1\Form1.Designer.cs

     文件       6423  2020-06-04 17:44  加载图片\WindowsFormsApplication1\WindowsFormsApplication1\Form1.resx

     文件       1464  2020-06-03 14:04  加载图片\WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       7296  2020-06-05 10:40  加载图片\WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件          0  2020-06-03 10:49  加载图片\WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

     文件          0  2020-06-03 10:49  加载图片\WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs

     文件          0  2020-06-03 10:49  加载图片\WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs

     文件       2860  2020-06-09 19:54  加载图片\WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.csproj.FileListAbsolute.txt

     文件       1018  2020-06-09 19:52  加载图片\WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.csproj.GenerateResource.Cache

     文件       2384  2020-06-05 10:38  加载图片\WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.csprojResolveAssemblyReference.cache

     文件      14336  2020-06-09 19:52  加载图片\WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.exe

     文件        180  2020-06-09 19:52  加载图片\WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.Form1.resources

     文件      26112  2020-06-09 19:52  加载图片\WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.pdb

     文件        180  2020-06-05 10:38  加载图片\WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.Properties.Resources.resources

     文件        536  2020-06-03 10:49  加载图片\WindowsFormsApplication1\WindowsFormsApplication1\Program.cs

     文件       1374  2020-06-03 10:49  加载图片\WindowsFormsApplication1\WindowsFormsApplication1\Properties\AssemblyInfo.cs

     文件       2861  2020-06-03 10:49  加载图片\WindowsFormsApplication1\WindowsFormsApplication1\Properties\Resources.Designer.cs

     文件       5612  2020-06-03 10:49  加载图片\WindowsFormsApplication1\WindowsFormsApplication1\Properties\Resources.resx

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

评论

共有 条评论