摘要: internal void InsertExcelChart() { Word.InlineShape ilsChartObject; Word.Selection sel; object oClassType = "Excel.Chart.8"; object oFileName = string 阅读全文
posted @ 2022-07-26 10:26 devgis 阅读(265) 评论(0) 推荐(0) 编辑
摘要: private void Form2_Load(object sender, EventArgs e) { int rowwidth = 20; int columnwidth = 100; int startx =0; int starty = 0; int rowcount = 1000; in 阅读全文
posted @ 2022-07-26 10:18 devgis 阅读(413) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Runtime.InteropServices; using System.Management; //using System.Management.Instrumentation; using System.Collections.Gener 阅读全文
posted @ 2022-07-26 10:15 devgis 阅读(850) 评论(0) 推荐(0) 编辑
摘要: win7的任务栏进度条有一个专门的类TaskbarManager,他在Windows API Code Pack里面,下载地址:http://archive.msdn.microsoft.com/WindowsAPICodePack 里面包含了所有的源代码以及大量的示例,并附有文档。 为了使用Tas 阅读全文
posted @ 2022-07-26 10:14 devgis 阅读(311) 评论(0) 推荐(0) 编辑
摘要: private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { //开头不允许出现0 if (textBox1.SelectionStart == 0) { if (e.KeyChar == '0') { e.Handled  阅读全文
posted @ 2022-07-26 10:11 devgis 阅读(1096) 评论(0) 推荐(0) 编辑
摘要: 一 基本介绍 操作文档,文件夹,需要用到的类 1 Directory(静态类) : 用于创建、移动和删除等操作通过目录和子目录 DirectoryInfo(非静态): 2 File(静态类) :提供用于创建、复制、删除、移动和打开文件的静态类,并协助创建 FileStream 对象 FileInfo 阅读全文
posted @ 2022-07-26 10:10 devgis 阅读(1294) 评论(0) 推荐(0) 编辑