Esempio n. 1
0
        private void saveToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form   activeChild = this.ActiveMdiChild;
            Object o           = e as Object;
            //e is an eventarg
            //it is also an Object

            //me is a mouseventarg
            //which is also an Object
            MouseEventArgs me = e as MouseEventArgs;

            if (activeChild != null)
            {
                if (activeChild.GetType() == typeof(Form1))
                {
                    Form1 f = activeChild as Form1;
                    f.NewClick();
                }
            }
        }