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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:15:48+00:00 2026-05-30T17:15:48+00:00

I have a main parent winform in which I have implemented some features and

  • 0

I have a main parent winform in which I have implemented some features and that have a number of child windows. Now I want the functionality I have implemented to run also on the child windows.

For instance, in the parent window I am moving an image on the selection of a checkbox. Now, if this checkbox is checked then the image should also move on the all other child windows.

Note: The image moving on the parent window should disapper and should only show on the opend dialogue or child window.

Please suggest if it is possible.

  • 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-30T17:15:50+00:00Added an answer on May 30, 2026 at 5:15 pm

    Try using events.

    Create an event for the parent form called ImageMoved.

    The child forms should subscribe to this event, and when you move the image, you raise the event, then the child forms will know to do their thing.

    Lots of different ways to do this. Simple example:

    public partial class Form1 : Form {
      public event EventHandler ImageMoved;
    
      private void OnImageMoved() {
        if (ImageMoved != null)
          ImageMoved(this, new EventArgs());
      }
    
      private void button1_Click(object sender, EventArgs e) {
        OnImageMoved();
      }
    
      private void button2_Click(object sender, EventArgs e) {
        Form2 f2 = new Form2(this);
        f2.Show();
      }
    }
    

    Then your child forms could look something like this:

    public partial class Form2 : Form {
      public Form2(Form1 parentForm) {
        InitializeComponent();
        parentForm.ImageMoved += new EventHandler(parentForm_ImageMoved);
      }
    
      void parentForm_ImageMoved(object sender, EventArgs e) {
        MessageBox.Show("Image moved");
      }
    }
    

    You could also create your own EventArgs class if you want to pass more information, such as which image, etc.

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

Sidebar

Related Questions

I have one main parent swf that loads several other swfs. If something happens
I've got a winform with some child forms on it. Now I'm accessing the
Basically, I have a main page (parent page) with a link that opens up
In my main window, I have a child control(user control) which contains a text
I have two documents - main.html (parent document) and enterKey.html (child document) . Within
I have the following scenario I have a main form as MDI parent and
Im looking to have a common parent function like so void main (param 1,
I have main categories and sub categories. I want to be able to sort
I have main table called 'Employee' and another slave table called 'EmployeeTypes' that has
i have a table called category in which i have main category ids and

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.