MDI Child Activated event not fired......

Posted on 2006-05-23
Last Modified: 2008-02-01

I am working in Visual Studio 2005 C#. In Mdi application ,i have two forms. from FormA button i call FormB. User enter some value in FormB->textbox. I need this textbox value in activated/enter event of  FormA. But neither Activted event fires nor enter event fires.

pl help......
Question by:HarjeetSingh
    LVL 1

    Accepted Solution

    I have done something similar to this.

    In Form2 I have

    private void textBox1_TextChanged(object sender, EventArgs e)
                myFunction(ref this.textBox1);

            private void myFunction(ref TextBox myTB)
                if (myTB.Text == "Go")
                    Form3 fTarget = new Form3();
                    fTarget.DoMyBidding(ref myTB);

    in Form3 I have

    public void DoMyBidding(ref TextBox myTB)
                this.button1.Text = myTB.Text;

    Which triggers events, and as long as I have my fTarget object still created anything inside Form2:myFunction has access.  Im not exactly sure what you are trying to pass, and I have shown the 'ref' so that you still have access to the object from Form2 in Form3.

    Hope this helps.

    Author Comment

    I have solved my pblm ....

    Thanxs for your reply Fittsim


    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
    We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
    This video discusses moving either the default database or any database to a new volume.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now