C# WinForms: Activating a thread when the program activates [closed]
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this questionAll I want to do is to make a thread that activates when the program starts. Is it possible? I tried to to use an event, but I failed at finding the right one (if there is one in the form's properties).
If there is no such event, is there an alternate way to do it?
Have you tried using the Shown
or Load
events?
If you want the thread to activate when the program starts, just put your thread startup code in your Main
method (usually in Program.cs).
精彩评论