Pass Value between MDI Child in WinForm using C#

Posted by abhilashca on Stack Overflow See other posts from Stack Overflow or by abhilashca
Published on 2010-03-14T06:56:44Z Indexed on 2010/03/14 7:05 UTC
Read the original article Hit count: 277

Filed under:

I have an MDI Parent, containing a MenuStrip. When I click on one of the Menu, two Child Forms are displayed simultaneoulsy.

I have a TextBox and a Send Button on one of my ChildForm. When I type-in something in that TextBox and Click the Send Button, I need to show that value in the TextBox of my Second Child Form.

What I had done is, I wrote a Public Function in the Second Child Form and tried to invoke it by creating an object of Second Form, on the Send Button click event. When I put break points, in that Public Function, I find that the control is flowing through that Public function on cliking the Send button. But the passed value is not displayed. And, I know that is not the standard way to do that.

Any sample script for help? Thanks.

© Stack Overflow or respective owner

Related posts about mdichild