不用Invoke就等用 Control.CheckForIllegalCrossThreadCalls = false;

简介: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; namespace 多线程_委托 { public partial class Form1 : Form { public Form1() { InitializeComponent(); //3.2在窗体加载的时候用‘写的方法DoShoumsgintextbox()’来实例化委托 Control.CheckForIllegalCrossThreadCalls = false; dgshoumsgintextbox = new DGDoshoumsgintextbox(DoShoumsgintextbox); DGaddtext dgaddtext = new DGaddtext(Addtext); } //4要调用的方法 private void AddString() { DateTime beginTime = DateTime.Now; for (int i = 0; i
目录
相关文章
|
7月前
Could not find method debug()
Could not find method debug()
260 59
|
4月前
引用 AspNetCoreRateLimit => StatusCode cannot be set because the response has already started.
引用 AspNetCoreRateLimit => StatusCode cannot be set because the response has already started.
80 0
ValidationError: Invalid options object. Dev Server has been initialized using an options object tha
ValidationError: Invalid options object. Dev Server has been initialized using an options object tha
Error: undefined method `launchd_service_path‘ for xxx
使用brew命令进行启动就报错。
244 0
|
Java
【Java异常】Feign常见的坑总结之一:Method Not Allowed“,“message“:“Request method ‘POST‘ not supported“,“path“:“/*
【Java异常】Feign常见的坑总结之一:Method Not Allowed“,“message“:“Request method ‘POST‘ not supported“,“path“:“/*
289 0
|
SQL Java 数据库连接
attempted to return null from a method with a primitive return type
attempted to return null from a method with a primitive return type
221 0
The method getServletContext() is undefined for the type HttpServletRequest
The method getServletContext() is undefined for the type HttpServletRequest
237 0
|
Java Android开发
Bad method handle type 7异常解决
在利用androidx版本写demo时,在添加了一些依赖后,遇到了`java.lang.ClassNotFoundException`bug,这就很奇怪了,我就添加rxjava3的依赖,就给我报这个错误。
|
Java Android开发
The method call() of type XXX must override a superclass
The method call() of type XXX must override a superclass
112 0
|
Linux
编译OpenJDK8:error: control reaches end of non-void function [-Werror=return-type]
编译OpenJDK8:error: control reaches end of non-void function [-Werror=return-type]
191 0