采用 Webbrowser 所在窗体的
Form1 为类 fm 为静态变量,
public static Form1 fm = null;
private void Form1_Load(object sender, EventArgs e)
{
fm = this;
}
public void threadcallfun1(){
Form1.fm.Invoke(new EventHandler(Form1.fm.invokeCall));
}
public void invokeCall(object sender, EventArgs e) {
//dosomething
}
阅读(3257) | 评论(0) | 转发(0) |