随笔分类 - C#
摘要:public Boolean ValidateDomainUser(string Domain, string UserName, string Password) { DirectoryEntry entry = new DirectoryEntry(Domain, UserName, Password); t...
阅读全文
摘要:protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { if (keyData == Keys.F2) { this.OnKeyPress(new KeyPressEventArgs('r')); return t
阅读全文
摘要:public void DataTabletoExcel(DataTable dt, string path) { StreamWriter sw = new StreamWriter(path, false, Encoding.GetEncoding("gb2312")); StringBuild
阅读全文
摘要:需要解析的配置XML C#代码 引用 利用DataSet读取XML 逐表逐行遍历 根据条件查询,生成需要的Datarow
阅读全文
摘要:bool isconn = true; PingReply pr; Ping ping = new Ping(); pr = ping.Send("lightyiyi.cn"); if (pr.Status != IPStatus.Success) { isconn = false; } Messa
阅读全文

浙公网安备 33010602011771号