• 大小: 0.09M
    文件类型: .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;

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

        private void 打开Excel文件ToolStripMenuItem_Click(object sender EventArgs e)
        {
            OpenFileDialog.Filter=“Excel文件|*.xls“;//设置打开文件筛选器
            OpenFileDialog.title = “打开Excel文件“;//设置打开对话框标题
            if (OpenFileDialog.ShowDialog() == DialogResult.OK)//判断是否选择了文件
            {
                WBrowser_Excel.Navigate(OpenFileDialog.FileName);//在窗体中显示Excel文件内容
            }
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         932  2010-06-03 08:35  ExcelToWinForm\ExcelToWinForm.sln
     文件       15364  2010-11-03 15:38  ExcelToWinForm\ExcelToWinForm.suo
     文件        3843  2010-11-03 15:27  ExcelToWinForm\ExcelToWinForm\ExcelToWinForm.csproj
     文件         884  2010-06-03 19:17  ExcelToWinForm\ExcelToWinForm\Frm_Main.cs
     文件        3939  2010-06-03 17:07  ExcelToWinForm\ExcelToWinForm\Frm_Main.Designer.cs
     文件        6216  2010-06-03 17:07  ExcelToWinForm\ExcelToWinForm\Frm_Main.resx
     文件         498  2010-06-03 17:07  ExcelToWinForm\ExcelToWinForm\Program.cs
     文件        9216  2010-11-03 15:27  ExcelToWinForm\ExcelToWinForm\bin\Debug\ExcelToWinForm.exe
     文件       30208  2010-11-03 15:27  ExcelToWinForm\ExcelToWinForm\bin\Debug\ExcelToWinForm.pdb
     文件       14328  2010-06-03 08:36  ExcelToWinForm\ExcelToWinForm\bin\Debug\ExcelToWinForm.vshost.exe
     文件         490  2009-06-11 05:14  ExcelToWinForm\ExcelToWinForm\bin\Debug\ExcelToWinForm.vshost.exe.manifest
     文件        2328  2010-11-03 15:27  ExcelToWinForm\ExcelToWinForm\obj\Debug\ExcelToWinForm.csproj.FileListAbsolute.txt
     文件         850  2010-11-03 15:27  ExcelToWinForm\ExcelToWinForm\obj\Debug\ExcelToWinForm.csproj.GenerateResource.Cache
     文件        9216  2010-11-03 15:27  ExcelToWinForm\ExcelToWinForm\obj\Debug\ExcelToWinForm.exe
     文件         180  2010-11-03 15:27  ExcelToWinForm\ExcelToWinForm\obj\Debug\ExcelToWinForm.Frm_Main.resources
     文件       30208  2010-11-03 15:27  ExcelToWinForm\ExcelToWinForm\obj\Debug\ExcelToWinForm.pdb
     文件         180  2010-11-03 15:27  ExcelToWinForm\ExcelToWinForm\obj\Debug\ExcelToWinForm.Properties.Resources.resources
     文件      155648  2010-06-03 18:37  ExcelToWinForm\ExcelToWinForm\obj\Debug\Interop.Office.dll
     文件        1360  2010-06-03 08:35  ExcelToWinForm\ExcelToWinForm\Properties\AssemblyInfo.cs
     文件        2878  2010-06-03 08:35  ExcelToWinForm\ExcelToWinForm\Properties\Resources.Designer.cs
     文件        5612  2010-06-03 08:35  ExcelToWinForm\ExcelToWinForm\Properties\Resources.resx
     文件        1099  2010-06-03 08:35  ExcelToWinForm\ExcelToWinForm\Properties\Settings.Designer.cs
     文件         249  2010-06-03 08:35  ExcelToWinForm\ExcelToWinForm\Properties\Settings.settings

评论

共有 条评论