1. Welcome Guest! In order to create a new topic or reply to an existing one, you must register first. It is easy and free. Click here to sign up now!.
    Dismiss Notice

.NET - Specifying threads for events

Discussion in 'Microsoft News' started by NewsBot, Apr 11, 2008.

  1. NewsBot

    NewsBot I Got News

    Joined:
    Feb 8, 2006
    Messages:
    1,813
    Operating System:
    Windows Vista Home Premium
    Hello All.

    Is there any way that I can specify than an event handler MUST run on the UI thread?

    For example, can I have a long running process on a secondary thread*that fires events periodically, and have an event handler that will update the UI with the status of the secondary thread?

    I realise that within the event handler, I could call an invoke, but was wondering if there was a simpler solution to this one?



     

Share This Page