• 大小: 0.62M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: 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;
using System.Data.OleDb;
using System.IO;

namespace ExcelToAccess
{
    public partial class Frm_Main : Form
    {
        public Frm_Main()
        {
            InitializeComponent();
        }

        private void btn_Select_Click(object sender EventArgs e)
        {
            openFileDialog1.Filter = “Excel文件|*.xls“;//设置打开文件筛选器
            openFileDialog1.title = “选择Excel文件“;//设置打开对话框标题
            openFileDialog1.Multiselect = false;//设置打开对话框中只能单选
            if (openFileDialog1.ShowDialog() == DialogResult.OK)//判断是否选择了文件
            {
                txt_Path.Text = openF

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         929  2010-06-11 15:24  ExcelToAccess\ExcelToAccess.sln
     文件       19456  2010-11-03 16:51  ExcelToAccess\ExcelToAccess.suo
     文件        4098  2010-11-03 16:50  ExcelToAccess\ExcelToAccess\ExcelToAccess.csproj
     文件        5917  2010-06-12 08:43  ExcelToAccess\ExcelToAccess\Frm_Main.cs
     文件        8425  2010-06-12 08:37  ExcelToAccess\ExcelToAccess\Frm_Main.designer.cs
     文件        6017  2010-06-12 08:37  ExcelToAccess\ExcelToAccess\Frm_Main.resx
     文件         497  2010-06-11 15:26  ExcelToAccess\ExcelToAccess\Program.cs
     文件       65536  2007-10-10 09:48  ExcelToAccess\ExcelToAccess\bin\Debug\dao.dll
     文件       13312  2010-11-03 16:50  ExcelToAccess\ExcelToAccess\bin\Debug\ExcelToAccess.exe
     文件       32256  2010-11-03 16:50  ExcelToAccess\ExcelToAccess\bin\Debug\ExcelToAccess.pdb
     文件       14328  2010-06-11 15:24  ExcelToAccess\ExcelToAccess\bin\Debug\ExcelToAccess.vshost.exe
     文件         490  2009-06-11 05:14  ExcelToAccess\ExcelToAccess\bin\Debug\ExcelToAccess.vshost.exe.manifest
     文件      997992  2007-10-10 09:48  ExcelToAccess\ExcelToAccess\bin\Debug\Microsoft.Office.Interop.Access.dll
     文件     1100392  2007-10-10 09:48  ExcelToAccess\ExcelToAccess\bin\Debug\Microsoft.Office.Interop.Excel.dll
     文件        2835  2010-11-03 16:50  ExcelToAccess\ExcelToAccess\obj\Debug\ExcelToAccess.csproj.FileListAbsolute.txt
     文件         850  2010-11-03 16:50  ExcelToAccess\ExcelToAccess\obj\Debug\ExcelToAccess.csproj.GenerateResource.Cache
     文件       13312  2010-11-03 16:50  ExcelToAccess\ExcelToAccess\obj\Debug\ExcelToAccess.exe
     文件         180  2010-11-03 16:50  ExcelToAccess\ExcelToAccess\obj\Debug\ExcelToAccess.Frm_Main.resources
     文件       32256  2010-11-03 16:50  ExcelToAccess\ExcelToAccess\obj\Debug\ExcelToAccess.pdb
     文件         180  2010-11-03 16:50  ExcelToAccess\ExcelToAccess\obj\Debug\ExcelToAccess.Properties.Resources.resources
     文件       14664  2010-06-11 19:50  ExcelToAccess\ExcelToAccess\obj\Debug\ResolveAssemblyReference.cache
     文件        1358  2010-06-11 15:24  ExcelToAccess\ExcelToAccess\Properties\AssemblyInfo.cs
     文件        2876  2010-06-11 15:24  ExcelToAccess\ExcelToAccess\Properties\Resources.Designer.cs
     文件        5612  2010-06-11 15:24  ExcelToAccess\ExcelToAccess\Properties\Resources.resx
     文件        1098  2010-06-11 15:24  ExcelToAccess\ExcelToAccess\Properties\Settings.Designer.cs
     文件         249  2010-06-11 15:24  ExcelToAccess\ExcelToAccess\Properties\Settings.settings

评论

共有 条评论