• 大小: 0.34M
    文件类型: .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;
using Microsoft.Office.Interop.Excel;
using System.Reflection;
using System.Data.OleDb;

namespace DeleteSheet
{
    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 = openFileDialog1.FileName;//在文本框中显示Excel文件名
                CBoxBind();//对下拉列表进行数据绑定
            }
        }

        private void btn_Delete_Click(object s

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         923  2010-06-07 14:56  DeleteSheet\DeleteSheet.sln
     文件       19456  2010-11-03 16:11  DeleteSheet\DeleteSheet.suo
     文件        3965  2010-11-03 16:07  DeleteSheet\DeleteSheet\DeleteSheet.csproj
     文件        3363  2010-06-10 13:32  DeleteSheet\DeleteSheet\Frm_Main.cs
     文件        6018  2010-06-10 13:32  DeleteSheet\DeleteSheet\Frm_Main.designer.cs
     文件        6017  2010-06-10 13:32  DeleteSheet\DeleteSheet\Frm_Main.resx
     文件         495  2010-06-07 14:57  DeleteSheet\DeleteSheet\Program.cs
     文件       11776  2010-11-03 16:07  DeleteSheet\DeleteSheet\bin\Debug\DeleteSheet.exe
     文件       30208  2010-11-03 16:07  DeleteSheet\DeleteSheet\bin\Debug\DeleteSheet.pdb
     文件       14328  2010-06-07 14:56  DeleteSheet\DeleteSheet\bin\Debug\DeleteSheet.vshost.exe
     文件         490  2009-06-11 05:14  DeleteSheet\DeleteSheet\bin\Debug\DeleteSheet.vshost.exe.manifest
     文件     1100392  2007-10-10 09:48  DeleteSheet\DeleteSheet\bin\Debug\Microsoft.Office.Interop.Excel.dll
     文件        2379  2010-11-03 16:07  DeleteSheet\DeleteSheet\obj\Debug\DeleteSheet.csproj.FileListAbsolute.txt
     文件         850  2010-11-03 16:07  DeleteSheet\DeleteSheet\obj\Debug\DeleteSheet.csproj.GenerateResource.Cache
     文件       11776  2010-11-03 16:07  DeleteSheet\DeleteSheet\obj\Debug\DeleteSheet.exe
     文件         180  2010-11-03 16:07  DeleteSheet\DeleteSheet\obj\Debug\DeleteSheet.Frm_Main.resources
     文件       30208  2010-11-03 16:07  DeleteSheet\DeleteSheet\obj\Debug\DeleteSheet.pdb
     文件         180  2010-11-03 16:07  DeleteSheet\DeleteSheet\obj\Debug\DeleteSheet.Properties.Resources.resources
     文件        8746  2010-06-10 13:32  DeleteSheet\DeleteSheet\obj\Debug\ResolveAssemblyReference.cache
     文件        1354  2010-06-07 14:56  DeleteSheet\DeleteSheet\Properties\AssemblyInfo.cs
     文件        2872  2010-06-07 14:56  DeleteSheet\DeleteSheet\Properties\Resources.Designer.cs
     文件        5612  2010-06-07 14:56  DeleteSheet\DeleteSheet\Properties\Resources.resx
     文件        1096  2010-06-07 14:56  DeleteSheet\DeleteSheet\Properties\Settings.Designer.cs
     文件         249  2010-06-07 14:56  DeleteSheet\DeleteSheet\Properties\Settings.settings

评论

共有 条评论