Advertisement

02.04.2005 at 01:45PM PST, ID: 21302586
[x]
Attachment Details

Referencing other MDI Children from a child form

Asked by TLevin10 in C# Programming Language

Tags: , ,

I am trying to reference a public method in an MDI child form instance FROM another MDI child form.

What I am attempting to do is the following:

Main application is an MDI window.  the MDI window opens a new form (form1) as an MDI child.  In form1 I have a recordset of companies.  The user can then select an option to update/add/delete a record to the database of companies.  This opens form2 as another MDI child of the main window.  

When form2 is closed, I want to invoke an update method in form1 which will reload the dataset from the server.  there are multiple copies of form1 that can be open, so I want to be able to invoke the method in each instance.

Can anyone tell me how I can reference a non-static method in an instance of form1 from form2?

Thanks...Start Free Trial
[+][-]02.04.2005 at 02:20PM PST, ID: 13230528

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.04.2005 at 03:08PM PST, ID: 13230888

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.04.2005 at 03:15PM PST, ID: 13230936

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.04.2005 at 04:05PM PST, ID: 13231206

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.04.2005 at 04:27PM PST, ID: 13231321

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.04.2005 at 04:33PM PST, ID: 13231339

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: C# Programming Language
Tags: mdi, child, form
Sign Up Now!
Solution Provided By: gerry99
Participating Experts: 1
Solution Grade: A
 
 
[+][-]02.04.2005 at 04:34PM PST, ID: 13231342

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32