multithreading - VSTO Outlook add-in, does UI manipulation need to be done from main thread? -
i'm maintaining vsto add-in outlook, , has backgroundworker handles syncing server. want worker trigger user errors in ui (changing picture on button, enabling message in settings window).
does ui manipulation need done initial thread?
this stackoverflow answer says not, comment on it says so. it's excel, still vsto add-in. tried , seems work either thread, there race condition haven't hit yet.
yes, outlook / office object model access must done main thread. see vsto windows form , worker threads
Comments
Post a Comment