I would like to reference the http://support.microsoft.com/default.aspx in the Microsoft Knowledge Base? SCID = KB; ZH-CN; 815804 (how to: create a thread using Visual C #. net ). Article I am afraid there is no technical content here, but I still feel a bit touched by this article.
Let's talk about thread first, itself:
1. Add a namespace:Using system. Threading;
2. Add rowCodeTo a new thread:Thread mythread = new thread (New threadstart (This. threadtask));(Threadtask is the name of a method written by the developer in the class, and the newly generated thread will run this method .)Mythread. Start ();OK. (You can set the isbackground property of the thread to specify whether it is a background thread. However, I do not know the difference between the background and the non-background -_-)
This article is hard to understand, or can be said to be well understood, but we can see the importance of the document from these simple code. There are thousands of documents in the knowledge base, most of which are translated from English, so there are some translation problems. In this article, the "wait for input. "These words are not fully translated (it seems a bit picky _ ^), although this does not affect reading, but for the absolute newbie, it may still be confusing (whether you think too much -_-).
PS: Windows Forms programming in C # Reading is temporarily interrupted, because ADO. NET is not available for the time being, and the tutor's project is also very busy. For the time being, he started to read OOA/OOP documents.