Results 1 to 2 of 2

Thread: [RESOLVED] EnvDTE.DTE Thread

  1. #1

    Thread Starter
    Frenzied Member mickey_pt's Avatar
    Join Date
    Sep 2006
    Location
    Corner of the Europe :)
    Posts
    1,959

    Resolved [RESOLVED] EnvDTE.DTE Thread

    Hi
    I'm developing a small add-in for SSMS, now i want to improve the addin, so i thought in using the statusbar from the DTE. I get the status bar without any problem and i can set the text of the status bar with the text property MSDN EnvDTE.StatusBar.

    Now i want to set the text in a different thread, and i don't know how to get the owner thread of the status bar to invoke some sub to set the text?
    Just to tell the user that i'm doing something in the background, and tell the progress.

    Thanks

    Rate People That Helped You
    Mark Thread Resolved When Resolved

  2. #2

    Thread Starter
    Frenzied Member mickey_pt's Avatar
    Join Date
    Sep 2006
    Location
    Corner of the Europe :)
    Posts
    1,959

    Re: EnvDTE.DTE Thread

    After some reading it looks like i need to use the SynchronizationContex.
    And after some tests, it's up and running, very simple, just get the SynchronizationContex, then use it to call the procedure in the main thread that updates the StatusBar.

    Rate People That Helped You
    Mark Thread Resolved When Resolved

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width