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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:49:05+00:00 2026-06-17T14:49:05+00:00

I am struggling to determine the best way to update one form based on

  • 0

I am struggling to determine the best way to update one form based on an event that occurs in another.

For example, my application has a form that displays a list of parts (i.e. inventory, non-inventory, etc…) in a ListView. My application also has a form that allows the user to add a new part. The application is not a MDI.

What are my best options for updating the form that displays the list of parts every time an item is inserted, updated, or deleted from the other form?

I realize that I could pass a reference into the second form in cases where the form is instantiated from the first but, I’d prefer not to tightly couple the forms. I have experimented with custom events but, I think that is going to require implementation of a class in the middle that takes over instantiation of the forms so that it has access to both objects.

I guess I could use .NET built in properties. What are my best options?

  • 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-06-17T14:49:06+00:00Added an answer on June 17, 2026 at 2:49 pm

    If we’re just talking about two forms I would go the simple route (e.g. Don’t use a factory class).

    in your receiver form add an event (like ProductListChanged)

    add a global variable (via static class property (see below)) to hold the receiver form.

    public class globals {
      public static ProductForm productForm {get;set;}
    }
    

    Then you can raise the ProductListChanged event via the global static property.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to WPF and MVVM. I'm struggling to determine the best way to
I have been struggling with a problem that only happens when the database has
I'm struggling with a case expression to determine which update statement to make. Is
I'm struggling to determine how to design restful URLs. I'm all for the restful
I'm struggling to determine where in my CSS the padding/margins should go to keep
Im struggling with this one. I have a list of items and on a
I'm trying to determine the best approach for building a WCF Service, and the
Hey, I am struggling a bit to determine the exact cause of an error
I am struggling with passing several grep patterns that are contained within a variable.
Another newbie query. I've been struggling to install matplotlib for a Python project so

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.