C# Forms and Threading

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • twisterplus
    New Member
    • Apr 2009
    • 4

    #1

    C# Forms and Threading

    I have developed a multi form application in C#!
    I do not start them in different threads. I simply create new forms like this:

    Code:
    this.Form= new Form1();
    this.Form.Show();
    How ever these forms act like they run in two different threads! They are both active and can perform actions!
    I have checked my task manager. No matter how many forms I start, the number of threads is still the same!

    I was wondering what is happening underneath.

    Anyone can shed any light on this issue?

    Thanks
  • Christian Binder
    Recognized Expert New Member
    • Jan 2008
    • 218

    #2
    This is standard, that you can have many form open, which all accept input and don't block each other.
    If you show a form with this.Form.ShowD ialog() you can only do input action on this modal form.

    Comment

    Working...