Form activeForm = this.ActiveMdiChild as Form;
string title = activeForm.Text;
MessageBox.Show(title);
when i'm use this code the following is displayed "Object reference not set to an instance of an object." that point out the first line............please any one can help me.......
string title = activeForm.Text;
MessageBox.Show(title);
when i'm use this code the following is displayed "Object reference not set to an instance of an object." that point out the first line............please any one can help me.......