• 大小: 0.44M
    文件类型: .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;
using System.IO;

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

        //添加附件的单击事件
        private void btnSearch_Click(object sender EventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();//显示选择文件对话框
            ofd.ShowDialog();

            //得到上传文件的完整名
            string loadFullName = ofd.FileName.ToString();
            this.picShow.ImageLocation = loadFullName;
            //上传文件的文件名
            string loadName = loadFullName.Substring(loadFullName.LastIndexOf(“\\“) + 1)

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

     文件        922  2009-10-30 11:42  图片上传\ImageUpLoad\ImageUpLoad.sln

    ..A..H.     12288  2009-10-30 15:22  图片上传\ImageUpLoad\ImageUpLoad.suo

     文件       3294  2009-10-30 11:49  图片上传\ImageUpLoad\ImageUpLoad\ImageUpLoad.csproj

     文件        470  2009-10-30 11:41  图片上传\ImageUpLoad\ImageUpLoad\Program.cs

     文件       5632  2005-11-11 22:25  图片上传\ImageUpLoad\ImageUpLoad\bin\Debug\ImageUpLoad.vshost.exe

     文件      65007  2009-10-30 14:20  图片上传\ImageUpLoad\ImageUpLoad\bin\Debug\课表.jpg

     文件     184320  2009-10-30 15:22  图片上传\ImageUpLoad\ImageUpLoad\bin\Debug\ImageUpLoad.exe

     文件      28160  2009-10-30 15:22  图片上传\ImageUpLoad\ImageUpLoad\bin\Debug\ImageUpLoad.pdb

     文件     161862  2002-06-18 02:33  图片上传\ImageUpLoad\ImageUpLoad\Images\Folder Pictures.ico

     文件       4528  2009-10-30 15:22  图片上传\ImageUpLoad\ImageUpLoad\Images\5.jpg

     文件     162428  2009-10-30 15:22  图片上传\ImageUpLoad\ImageUpLoad\obj\Debug\ImageUpLoad.Form1.resources

     文件        180  2009-10-30 15:00  图片上传\ImageUpLoad\ImageUpLoad\obj\Debug\ImageUpLoad.Properties.Resources.resources

     文件     184320  2009-10-30 15:22  图片上传\ImageUpLoad\ImageUpLoad\obj\Debug\ImageUpLoad.exe

     文件      28160  2009-10-30 15:22  图片上传\ImageUpLoad\ImageUpLoad\obj\Debug\ImageUpLoad.pdb

     文件        842  2009-10-30 15:22  图片上传\ImageUpLoad\ImageUpLoad\obj\Debug\ImageUpLoad.csproj.GenerateResource.Cache

     文件        296  2009-10-30 15:22  图片上传\ImageUpLoad\ImageUpLoad\obj\ImageUpLoad.csproj.FileList.txt

     文件       1194  2009-10-30 11:41  图片上传\ImageUpLoad\ImageUpLoad\Properties\AssemblyInfo.cs

     文件       2876  2009-10-30 11:41  图片上传\ImageUpLoad\ImageUpLoad\Properties\Resources.Designer.cs

     文件       5612  2009-10-30 11:41  图片上传\ImageUpLoad\ImageUpLoad\Properties\Resources.resx

     文件       1094  2009-10-30 11:41  图片上传\ImageUpLoad\ImageUpLoad\Properties\Settings.Designer.cs

     文件        249  2009-10-30 11:41  图片上传\ImageUpLoad\ImageUpLoad\Properties\Settings.settings

     文件       8474  2009-10-30 15:22  图片上传\ImageUpLoad\ImageUpLoad\Form1.cs

     文件       5494  2009-10-30 15:22  图片上传\ImageUpLoad\ImageUpLoad\Form1.Designer.cs

     文件     248906  2009-10-30 15:22  图片上传\ImageUpLoad\ImageUpLoad\Form1.resx

     目录          0  2009-10-30 13:33  图片上传\ImageUpLoad\ImageUpLoad\obj\Debug\TempPE

     目录          0  2009-10-30 13:33  图片上传\ImageUpLoad\ImageUpLoad\bin\Debug

     目录          0  2009-10-30 13:33  图片上传\ImageUpLoad\ImageUpLoad\obj\Debug

     目录          0  2009-10-30 13:33  图片上传\ImageUpLoad\ImageUpLoad\bin

     目录          0  2009-10-30 13:33  图片上传\ImageUpLoad\ImageUpLoad\Images

     目录          0  2009-10-30 13:33  图片上传\ImageUpLoad\ImageUpLoad\obj

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

评论

共有 条评论