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 6999303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:31:26+00:00 2026-05-27T20:31:26+00:00

I am trying to figure out how I can update my UI from an

  • 0

I am trying to figure out how I can update my UI from an DLL that is doing some task.

I cant figure out how the DLL can know anything of the UI.

To hopefully explain more clear:

I have let’s say task1, task2 and UI.
task1 and task2 are both DLL’s and dont know anything of UI.
How can I tell the DLL’s to call some function in UI?

Hopefully I am clear enough, my knowledge of C# is far from where I want it to be.

Thanks in advance.

PS to hopefully not make it worse both tasks have their own appDomain’s

  • 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-27T20:31:27+00:00Added an answer on May 27, 2026 at 8:31 pm

    You don’t tell them to update the UI, you raise an event that indicates something has changed, that might be interesting – you then make the UI subscribe to that event on your instances, and update the UI accordingly.

    So, let’s say you want to raise an event whenever any of the properties on a class change (conveniently, there is the INotifyPropertyChanged interface that even describes that you are going to do this, and a lot of things will “notice” and “do the right thing”, such as BindingList<T>)

    So you declare that your class has properties:

    public event PropertyChangedEventHandler PropertyChanged;
    

    Then, to raise the event, you simply call:

    if (PropertyChanged != null)
    {
        PropertyChangedEventArgs e = new PropertyChangedEventArgs(propertyName);
        PropertyChanged(this, e);
    }
    

    To subscribe to the events (in your client application/UI layer) it’s as simple as having your event hadler:

    protected void yourClass_PropertyChanged(object sender, PropertyChangedEventArgs e)
    {
         // Update the UI -- might need to check whether you need too invoke, if you're multi-threaded
    }
    

    Add wiring up

    YourClass foo = new YourClass();
    foo.PropertyChanged += new PropertyChangedEventHandler(this.yourClass_PropertyChanged);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to figure out how can I update the petevents table with
I am trying to figure out how I can update my sql query dynamically.
I'm trying to do a simple update, but can't figure out somthing. I have
I trying to figure out how I can delete from multiple tables in SQL
I'm trying to figure out how I can listen to the Cancel button that
I am trying to figure out how I can define an autocmd that influences
hello there :) Im trying to figure out how i can grab some content
Trying to figure out how I can do this properly. The print_r looks like
I'm trying to figure out why I can't I use super in a generic
I am trying to figure out how I can tell, in MATLAB, how many

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.