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

资源简介


资源截图

代码片段和文件信息

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

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

        private void button1_Click(object sender EventArgs e)
        {
            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                string[] img = openFileDialog1.FileNames;
                for (int i = 0; i < img.Length; i++)
                {
                    listBox1.Items.Add(img[i]);
                }
            }
        }

        private void listBox1_SelectedIndexChanged(object sender EventArgs e)
        {
            pictureBox1.Image = Image.FromFile(listBox1.SelectedItem.ToString());
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         926  2009-02-07 11:15  sj\01\previewImage\previewImage.sln
     文件       13312  2009-02-07 11:19  sj\01\previewImage\previewImage.suo
     文件         933  2009-02-07 11:18  sj\01\previewImage\previewImage\Form1.cs
     文件        3846  2009-02-07 11:18  sj\01\previewImage\previewImage\Form1.Designer.cs
     文件        6017  2009-02-07 11:18  sj\01\previewImage\previewImage\Form1.resx
     文件        3770  2009-02-07 11:16  sj\01\previewImage\previewImage\previewImage.csproj
     文件         493  2009-02-07 11:15  sj\01\previewImage\previewImage\Program.cs
     文件        9216  2009-02-07 11:18  sj\01\previewImage\previewImage\bin\Debug\previewImage.exe
     文件       24064  2009-02-07 11:18  sj\01\previewImage\previewImage\bin\Debug\previewImage.pdb
     文件       14328  2009-02-07 11:19  sj\01\previewImage\previewImage\bin\Debug\previewImage.vshost.exe
     文件         490  2007-07-21 01:33  sj\01\previewImage\previewImage\bin\Debug\previewImage.vshost.exe.manifest
     文件         663  2009-02-07 11:19  sj\01\previewImage\previewImage\obj\Debug\previewImage.csproj.FileListAbsolute.txt
     文件         847  2009-02-07 11:18  sj\01\previewImage\previewImage\obj\Debug\previewImage.csproj.GenerateResource.Cache
     文件        9216  2009-02-07 11:18  sj\01\previewImage\previewImage\obj\Debug\previewImage.exe
     文件         180  2009-02-07 11:18  sj\01\previewImage\previewImage\obj\Debug\previewImage.Form1.resources
     文件       24064  2009-02-07 11:18  sj\01\previewImage\previewImage\obj\Debug\previewImage.pdb
     文件         180  2009-02-07 11:17  sj\01\previewImage\previewImage\obj\Debug\previewImage.Properties.Resources.resources
     文件        1356  2009-02-07 11:15  sj\01\previewImage\previewImage\Properties\AssemblyInfo.cs
     文件        2874  2009-02-07 11:15  sj\01\previewImage\previewImage\Properties\Resources.Designer.cs
     文件        5612  2009-02-07 11:15  sj\01\previewImage\previewImage\Properties\Resources.resx
     文件        1097  2009-02-07 11:15  sj\01\previewImage\previewImage\Properties\Settings.Designer.cs
     文件         249  2009-02-07 11:15  sj\01\previewImage\previewImage\Properties\Settings.settings
     文件         920  2008-11-29 09:07  sl\APIdesktop.sln
     文件       13824  2009-02-11 13:04  sl\APIdesktop.suo
     文件        4538  2008-11-29 12:54  sl\APIdesktop\APIdesktop.csproj
     文件       10428  2008-11-29 11:05  sl\APIdesktop\bg2.png
     文件        6409  2008-12-29 11:05  sl\APIdesktop\Form1.cs
     文件       11527  2008-12-29 11:05  sl\APIdesktop\Form1.Designer.cs
     文件        6422  2008-12-29 11:05  sl\APIdesktop\Form1.resx
     文件         628  2008-11-29 12:57  sl\APIdesktop\Form2.cs
     文件        2837  2008-11-29 11:47  sl\APIdesktop\Form2.Designer.cs
............此处省略27个文件信息

评论

共有 条评论