文章分类 - WinForm
摘要:1 /// <summary> 2 /// 获取对应url地址的源码 3 /// </summary> 4 /// <param name="url">传入的url地址</param> 5 /// <returns></returns> 6 public string GetWebContents(string url) 7 { 8 string webContent = ""; 9 Encoding encoding = Encoding...
阅读全文
摘要:在winform中使用程序动态读取和修改App.config里面的appSettings当中的Value值,解决winform中没有的修改和修改后不能及时取得其值的问题: //写操作 public static void SetValue(string AppKey, string AppValue) { XmlDocument xDoc = new XmlDocument(); //获取可执行文件的路径和名称 xDoc.Load(System.Windows.Forms.Application.ExecutablePath + ".config"); XmlNode xN
阅读全文