C# 类中如何使用BeginInvoke C# 类中如何使用BeginInvoke,我在使用为什么提示未定义啊,using System.Windows.Forms;也不行啊 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 NewDelegate task = newTask;IAsyncResult asyncResult = task.BeginInvoke(2000, null, null); private delegate void BeginInvokeDelegate();private void BeginInvokeMethod(){ //C代码段}private void butBeginInvoke_Click(object sender, EventArgs e) { //A代码段....... this.BeginInvoke(new BeginInvokeDelegate(BeginInvokeMethod)); //B代码段......} 楼主要用异步??直接Inovke不可以吗?? BeginInvoke是某些类的一个方法,不是所有对象都可以调用的。 即使同步,在一个单元类中,也提示当前上下文中不存在“Inovke”名称 C# winform 程序添加引用com组件以后 拿到别的电脑上运行报错 为何我的Socket客户端只能发送服务端一次,第二次窗体就动不了了。 winform中如何设置datagrid中的字体? 如何把SQL数据传到内存DATATABLE???急用 请问用WPF如何写出界面上的图标像iphone里面图标似的软件? 高手请进 100分问题 不够还可以追加 谢谢 关与imageList控件在FORM2中的使用 根据击键特征进行身份验证的算法源代码。 急!!谁用过timer组件?我想定时在网页上显示一行字,应该怎么做 【分享】LINQ入门 wpf的viewbox缩放问题 网站无法访问
IAsyncResult asyncResult = task.BeginInvoke(2000, null, null);
private void BeginInvokeMethod(){
//C代码段
}
private void butBeginInvoke_Click(object sender, EventArgs e) {
//A代码段.......
this.BeginInvoke(new BeginInvokeDelegate(BeginInvokeMethod));
//B代码段......
}