10 2018 档案
摘要:this.Invoke(new MethodInvoker(delegate () { //这里是执行代码 }));
阅读全文
摘要:private void button1_Click(object sender, EventArgs e) { //无参方式一 Thread thread = new Thread(display); thread.Start(); //无参方式二 Thread thread = new Thread(new ThreadStart(displ...
阅读全文
摘要:new System.Threading.Thread((System.Threading.ThreadStart)delegate { Application.Run(new Form2); }).Start();
阅读全文
摘要:引用:Invalidate()出处 Invalidate()是System.Windows.Forms.Form的一个成员,它把客户窗口区域标记为无效,因此在需要重新绘制时,它可以确保引发Paint事件。Invalidate()有两个重载方法:可以给它传送一个矩形,指定(使用页面坐标)需要重新绘制哪
阅读全文
摘要:1 try 2 { 3 string url = ""; 4 HttpWebRequest request = (HttpWebRequest)WebRequest.Create(new Uri(url)); 5 ((HttpWebResponse)request.GetResponse()).Close(); 6 //链接有效 7 } 8 cat...
阅读全文
摘要:首先调式的时候确定在debug模式下 解决方法:工具-选项-调试 -(启用“仅我的代码”)勾去掉。
阅读全文
摘要:需要DLL:Interop.QuartzTypeLib.dll 源码下载:https://www.lanzous.com/i23qp1c
阅读全文
摘要:private delegate void UpdateDataGridView(DataTable dt); private void UpdateGV(DataTable dt) { if (dataGridView1.InvokeRequired) { this.BeginInv...
阅读全文

浙公网安备 33010602011771号