2008年7月10日

C#程序中控制Windows的任务栏

摘要: 如果你要在你的C#程序中控制Windows的任务栏,有两个Windows api 可以帮到你!他们就是 FindWindowA 和 ShowWindow C#中声明如下: using System.Runtime.InteropServices; [DllImport("user32.dll", EntryPoint = "FindWindowA")] public static extern ... 阅读全文

posted @ 2008-07-10 17:51 那片云 阅读(339) 评论(0) 推荐(0) 编辑

Microsoft.Office.Interop.Excel命名空间

摘要: Microsoft.Office.Interop.Excel命名空间要添加什么引用 在visual Studio 2005命令提示工具中,定位到Excel安装目录,运行“TlbImp EXCEL.EXE”命令,把Excel.exe编译为Excel.dll。这一步会... 阅读全文

posted @ 2008-07-10 14:51 那片云 阅读(5442) 评论(3) 推荐(0) 编辑

C#将Excel表格中的数据导入SQL数据库

摘要: private static string _filePath=string.Empty ; #region Excel导入SQL数据库 /// /// 获取Excel数据表列表 /// /// public static ArrayList GetExcelTables() { //将Excel架构存入数据里 System.Data.DataTabl... 阅读全文

posted @ 2008-07-10 13:37 那片云 阅读(4138) 评论(0) 推荐(0) 编辑

导航