摘要: 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.IO;using System.Runtime.InteropServices;namespace WindowsFormsApplication2{ public partial class Form1 : For... 阅读全文
posted @ 2013-12-03 23:59 XE2011 阅读(567) 评论(1) 推荐(0)
摘要: 打开一个文件 private void button1_Click(object sender, EventArgs e) { openFileDialog1.InitialDirectory = "c:\\"; openFileDialog1.Filter = "文本文件 (*.txt)|*.tx 阅读全文
posted @ 2013-12-03 21:28 XE2011 阅读(225) 评论(0) 推荐(0)
摘要: 附件:http://files.cnblogs.com/xe2011/CSharp_DragQueryFile.rarusing System.Runtime.InteropServices; this.AllowDrop = true; [DllImport("shell32.dll")] public static extern uint DragQueryFile(int hDrop, uint iFile, StringBuilder lpszFile, uint cch); [DllImport("shell32.dll")] ... 阅读全文
posted @ 2013-12-03 20:33 XE2011 阅读(770) 评论(0) 推荐(0)
摘要: 附件 http://files.cnblogs.com/xe2011/richTextBox_InsertTable_Full.rar调用 richTextBoxTableDlg dlg = new richTextBoxTableDlg(); dlg.richTextBox = richTextBox51; if (dlg.ShowDialog() ==DialogResult.OK) { richTextBoxTable r1 = new richTextBoxTable(); ... 阅读全文
posted @ 2013-12-03 17:08 XE2011 阅读(1540) 评论(0) 推荐(0)
摘要: 附件:http://files.cnblogs.com/xe2011/richTextBox_InsertTable.rar插入表格 /// /// 插入表格 /// /// /// 行 /// 列 /// =TRUE:自动设置每个单元格的大小 private void InsertTable(RichTextBox richTextBox,int col, int row,bool AutoSize) { StringBuilder rtf ... 阅读全文
posted @ 2013-12-03 14:17 XE2011 阅读(1620) 评论(0) 推荐(0)