0
Answer

Update UI from relfected assembly

Joshua Foulk

Joshua Foulk

15y
2.3k
1

I am starting a new project and am venturing a little farther into reflection than I previously have.  I am hoping someone here can shed some light on my situation.  Here is what I have:

I would like to make my application extensable by allowing developers to create custom additions that will be loaded by my main app through reflection.  These additions will have a predefined format so I know what method calls I need to make in order to utilize the custom code, but I'm running into an issue with updating my gui in a thread safe manor.

What is the proper model for this type of behavior.  All I need is to allow the developer to send status and progress information (as well as anything else later down the line).  I, of course, can account for these UI changes in my main form (there will be no need to customize the user interface beyond the two or three options I give the developer).

Thanks to anyone who can help me wrap my head around this.  I'm not looking for code examples per say...  a link to a good tut or some general guidelines would be nice.

Thanks again,

Joshua Foulk