C# 读写XML文件,VS2005环境 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace XmlApp { public partial class Form1 : Form { priv ate
一个不错的Html编辑器控件源码,采用前面介绍的IE的命令标识符对.NET下的WebBrowser控件进行了扩展,使得它不仅可以作为一个Web浏览器,而且可以作为一个功能强大的Web编辑器。如图所示: 使用命令标识符的基本方法是: webBroser.Document.ExecCommand( string command, bool showUI, Object value ) 参数 command 要执行的命令的名称。有关命令的完整列表,请参见IE编程之“命令标识符”(Comm and I
我设置好右键菜单以后,怎么样获取右键点击的是哪一单元格 Point p = new Point(contextMenuStrip1.Left, contextMenuStrip1.Top); for (int r = 0; r < dataGridView1.RowCount; r++) { for (int c = 0; c < dataGridView1.Columns.Count; c++) { Rectangle rect = dataGridView1.GetCellDi
c#.net完美读取及设置INI文件 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO; namespace yjjk { public partial class setfdbs :