Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6529791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:40:40+00:00 2026-05-25T09:40:40+00:00

Like many others, I need to open WinForms on other threads. After reading a

  • 0

Like many others, I need to open WinForms on other threads. After reading a lot of different articles, I see that it is not possible but my question is will it be possible at a time or is there a way to achieve the following goal?

I’m creating an application with a lot of tool windows that are long to initialize (because of many controls or other things that cannot be put on worker threads) and these tools windows are not needed immediately when the main application starts but I still want to show them when they’ll be ready to be used.

Is this possible to achieve in some way without needing a feature, WinForms on other threads, that seams to be currently impossible now?

thanks in advance

EDIT

All of you, thanks for the good articles and hints but it was my error to not provide any more details about one of my real nead. I’m currently using a third party control that enables me to open WinForms in an MDI container as tabbed windows (i’m using Telerik.WinControls.UI.Docking.RadDock). For this, the Main UI thread, the one that host the RadDock, needs to be informed of newly added Winforms to be able to add them to is “tabbed” window list. This is one of the thing that I do not see how it can be done because this will involve that one of my tool window, created on another thread, can be marshalled and be used on the main thread.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T09:40:40+00:00Added an answer on May 25, 2026 at 9:40 am

    Its not that you need to show your WinForms on other threads, rather, you need to make the work inside those forms asynchronous and implement proper thread-safe synchronization. I have two blog articles that apply to just this.

    • Using ISynchronizeInvoke to update your UI safely from another thread
    • Writing thread-safe event handlers with the Task Parallel Library (includes source code)

    Both are for Windows Forms, and there are tons of articles you can find on making your WinForms asynchronous.

    A for instance.

    ToolWindowForm form = new ToolWindowForm()) {
    form.Show();
    // other code
    

    Let’s say you have this somewhere in your code where you need this tool window to display, but it takes such a long time to load it blocks the rest of your code from execution. Well, showing the form on another thread could be one way to accomplish this, and is very much so possible. What can make this exceedingly complex though is that if you are communicating between forms and need access to controls, you are going to run into CrossThreadViolations and IllegalCrossThreadCalls. Its easier and safer just to make the work behind each form asynchronous.

    Edit
    If its a must you can add private members to store instances to the forms, ie.

    private Form m_MyToolForm = new Form();
    private Form m_MyToolForm2 = new Form();
    

    Then somewhere in code.

    public void ShowToolForm() {
        Thread thread = new Thread(new ThreadStart(ShowToolFormAsync));
        thread.IsBackground = true;
        thread.Start();
    }  
    
    private void ShowToolFormAsync() {
        m_MyToolForm.ShowDialog(); // Blocks on this thread
    }
    

    You can also use the Task Parallel Library if you are on .NET 4.

    Task.Factory.StartNew(() => m_MyToolForm.ShowDialog());
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Like many other SharePoint users, I've had to create a custom list definition. After
I'm looking for generic and open source payment libraries that support many different payment
Like many others on this site I am considering a move to ASP.NET MVC
I, like many others, love Eclipse as my ide of choice, and because of
In Ruby, like in many other OO programming languages, operators are overloadable. However, only
So I have a User model that :has_many other models like Documents, Videos, Posts
I'd like to enable/disable some other controls based on how many items are in
Like many companies that require all access be through stored procedures, we seem to
I need to produce an embedded ARM design that has requirements to do many
My company has an iOS developer license, and like many others we have reached

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.