.NET线程间操作窗体

前两天用了用wxWidgets,MinGW.很感兴趣。决定忙完这阵子好好研究一下。

刚才用c#写了一些东西,写一点心得:

private void start(){
Thread newThread = new Thread(new ThreadStart(beginZ));
newThread.Start();
}
private delegate void beginZ_www_dc9_cn_invoke(string r); 
private void richTextBox1text(string r) {
            richTextBox1.Text=rurl; 
}
private void beginZ(){
richTextBox1.BeginInvoke(new beginZ_www_dc9_cn_invoke(richTextBox1text), new object[] { r});
Thread.Sleep(500);
}


简单死了!

注意一点Thread.Sleep避免假死。

2 comments

  1. Rob Summar 说道:

    I just want to say I’m new to blogging and actually savored your web-site. More than likely I’m going to bookmark your site . You absolutely come with great writings. Thank you for sharing with us your webpage.

  2. Cory Clossin 说道:

    One thing I’d like to say is the fact that car insurance canceling is a hated experience and if you are doing the correct things as being a driver you may not get one. A lot of people do are sent the notice that they’ve been officially dumped by their particular insurance company they have to scramble to get supplemental insurance after a cancellation. Cheap auto insurance rates are frequently hard to get from a cancellation. Understanding the main reasons with regard to auto insurance cancellation can help car owners prevent completely losing in one of the most significant privileges readily available. Thanks for the suggestions shared through your blog.

发表评论

电子邮件地址不会被公开。