
C#
IT_ZB
这个作者很懒,什么都没留下…
展开
-
C#中读取xml文件和生成xml文件
1.读取xml文件 using System.Xml;XmlDocument xml = new XmlDocument(); xml.Load("XMLFile.xml"); string deviceIP = xml.SelectSingleNode("para/deviceIP").InnerText;原创 2016-06-07 11:24:00 · 1082 阅读 · 0 评论 -
C# winform中选择本地文件,并获取其路径
private void button1_Click(object sender, EventArgs e) { OpenFileDialog openFileDialog1 = new OpenFileDialog(); //显示选择文件对话框 openFileDialog1.InitialDirectory = "c:\\"; openFileDialo原创 2017-02-09 13:52:16 · 9753 阅读 · 1 评论