12 2021 档案
摘要:首先在窗口应用的加载内容中,也就是窗口的 load 里加入启动时的预载内容 //设置时间间隔ms int interval = 1000; Mytimer = new System.Timers.Timer(interval); //设置重复计时 Mytimer.AutoReset = true;
阅读全文
摘要:一般接收到的xml结构 <?xml version="1.0" encoding="UTF-8"?><response><header><msgname>xxxxx</msgname></header><body> . .</body> <return> . . </return> </respon
阅读全文
摘要:#region 定时关闭MessageBox (使用timer) [DllImport("user32.dll", EntryPoint = "FindWindow")] private static extern IntPtr FindWindow(string IpClassName, stri
阅读全文
摘要:本质上的应用场景是用于取文本中的关键内容, 但根据这个功能,可以应用到socket或是其他接收中 这样根据实际需求,就可以在两个<xxx></xxx>关键词中 捕获需要的内容,并且可以根据内容中的关键词再次捕获 并且还可以加入其他的功能、方法、逻辑判断来进一步使用 方法如下: /// <summar
阅读全文
摘要:// c# 文件流读文件 全部using System;using System.IO;// 利用文件流读取文件FileStream fileRead = new FileStream(@"这里直接复制文件的完整路径即可", FileMode.Open);// 获取长度,建立存储空间int file
阅读全文
摘要:原文可见: https://bl(删除)og.csdn.net/(删除)sinat_29009169/article/details(删除)/103917166 public static string GetWebSock() { #region SOAP请求内容 //int BADSTRALL
阅读全文
摘要:需要添加 Newtonsoft.Json 的NuGet包 #region POST,一般向服务器发送数据 /// <summary> /// POST,一般向服务器发送数据 /// </summary> /// <param name="strUrl"></param> /// <param nam
阅读全文