window| Asynchronous C # 2.0 anonymous methods greatly simplifies the implementation of the Windows Forms asynchronous invocation, and we no longer have to manually define asynchronous delegates or wrapper classes. For example, in the following code example, Form1 has a button control and a list control, in the Click event of a button control, we create a new thread that adds 10 items to the list control in this thread:
public class Form1:System.Windows.Forms.Form
{
Private System.Windows.Forms.ListBox ListBox1;
Private System.Windows.Forms.Button button1;
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.