摘要: public static int jj=4; public static string[,] Chess = new string[jj, 3]; //声明一个二维数组. //1.面板名 //2.button名 //3.显隐 private void Form1_Load(object sende 阅读全文
posted @ 2020-08-22 19:17 学竹 阅读(1158) 评论(0) 推荐(0) 编辑
摘要: private async void Browser_FrameLoadEnd(object sender, FrameLoadEndEventArgs e) { CookieVisitor visitor = new CookieVisitor(); visitor.SendCookie += v 阅读全文
posted @ 2020-08-19 16:52 学竹 阅读(1824) 评论(0) 推荐(0) 编辑
摘要: var cookieManager = Cef.GetGlobalCookieManager(); cookieManager.SetCookieAsync("http://127.0.0.1:5000", new Cookie() { Name = "aaa", Value = "bbb", }) 阅读全文
posted @ 2020-08-19 16:49 学竹 阅读(966) 评论(0) 推荐(0) 编辑
摘要: #region 内存回收 [DllImport("kernel32.dll", EntryPoint = "SetProcessWorkingSetSize")] public static extern int SetProcessWorkingSetSize(IntPtr process, in 阅读全文
posted @ 2020-08-19 16:47 学竹 阅读(311) 评论(0) 推荐(0) 编辑
摘要: public class CustomResourceRequestHandler : ResourceRequestHandler { protected override CefReturnValue OnBeforeResourceLoad(IWebBrowser chromiumWebBro 阅读全文
posted @ 2020-08-19 16:45 学竹 阅读(592) 评论(0) 推荐(0) 编辑
摘要: Point p = this.Location; Form2 form2 = new Form2(p); int l2 = this.Width/2 - form2.Width / 2; int t2 = this.Height/2 - form2.Height / 2; int l = p.X + 阅读全文
posted @ 2020-06-01 10:43 学竹 阅读(522) 评论(0) 推荐(0) 编辑
摘要: 转载于https://zhidao.baidu.com/question/360469626552901972.html paperkey的回答 public class Form1 { private void button_Click(object sender, EventArgs e) { 阅读全文
posted @ 2020-05-22 10:56 学竹 阅读(301) 评论(0) 推荐(0) 编辑
摘要: devexpress 每次运行都会弹出注册窗口 解决办法: 执行或打包前Properties ->license.licx 清空devexpress相关数据 阅读全文
posted @ 2020-05-21 15:00 学竹 阅读(1417) 评论(1) 推荐(0) 编辑
摘要: /// <summary> /// 获取当前时间戳,10位,秒 /// </summary> /// <returns></returns> public string GetTimeStamp() { TimeSpan ts = DateTime.Now - new DateTime(1970, 阅读全文
posted @ 2020-05-18 10:01 学竹 阅读(4989) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq_36240878/article/details/84024369 阅读全文
posted @ 2020-05-15 16:37 学竹 阅读(889) 评论(0) 推荐(0) 编辑