Communication between MDI Parent and MDI Child 
Author Message
 Communication between MDI Parent and MDI Child

Hello all,

I'm a newbee in Visual Studio .NET so please, be patient with me. I have a
very big problem, or let's say, that I have 2 big problems:

The first problem:
I hava a MDI parent where I open a MDI Child window within and it all goes
fine. If I define a public method, let's say public void Hello(), if I'm
trying to call that method from the MDI child, like this: this.MDIParent....
I can't find it! What should I do?

The second problem:
How can I change the apperance of my menus to look like VS.NET menus?

Thank you in advance!
Edi



Tue, 28 Sep 2004 16:45:34 GMT  
 Communication between MDI Parent and MDI Child
See my answer under microsoft.public.dotnet.framework.windowsforms

--
Martin Robins.

This message is posted "as is" etc., confers no rights etc., so don't sue me
etc.. You know the script.



Quote:
> Hello all,

> I'm a newbee in Visual Studio .NET so please, be patient with me. I have a
> very big problem, or let's say, that I have 2 big problems:

> The first problem:
> I hava a MDI parent where I open a MDI Child window within and it all goes
> fine. If I define a public method, let's say public void Hello(), if I'm
> trying to call that method from the MDI child, like this:
this.MDIParent....
> I can't find it! What should I do?

> The second problem:
> How can I change the apperance of my menus to look like VS.NET menus?

> Thank you in advance!
> Edi



Tue, 28 Sep 2004 18:54:43 GMT  
 Communication between MDI Parent and MDI Child
1) You have to cast the parent to the appropriate type.

        ((MyParentType)this.MDIParent).Hello();

2) As far as the XP themes, George Shepherd's Windows Forms FAQ contains an
entry entitled:

     How can I use XP Themes with Windows Forms?

Check it out at:
        http://www.syncfusion.com/faq/winforms/search/574.asp

=================================================
Clay Burch, Syncfusion, Inc.
visit http://www.syncfusion.com for .NET Essentials



Quote:
> Hello all,

> I'm a newbee in Visual Studio .NET so please, be patient with me. I have a
> very big problem, or let's say, that I have 2 big problems:

> The first problem:
> I hava a MDI parent where I open a MDI Child window within and it all goes
> fine. If I define a public method, let's say public void Hello(), if I'm
> trying to call that method from the MDI child, like this:
this.MDIParent....
> I can't find it! What should I do?

> The second problem:
> How can I change the apperance of my menus to look like VS.NET menus?

> Thank you in advance!
> Edi



Tue, 28 Sep 2004 20:13:05 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. DataView filter not working in MDI child forms with reference to MDI parent DataSet

2. Opening a new MDI child when no MDI Child exists

3. Opening a new MDI child from a MDI Child

4. How develop MDI application with child forms like VB MDI and Child forms

5. MDI Forms Child getting parent Info

6. MDI Parent/Child Question

7. How to let parent form listening MDI child Form

8. MFC MDI Multiple Views in Separate MDI Child Windows

9. Variables between MDI and MDI-child...

10. How to create an MDI App without an initial MDI Child opening by the framework

11. Can an MDI parent contain another MDI parent as a child?

12. Change MDI child caption and Close child window button

 

 
Powered by phpBB® Forum Software