MDI Application ...........
-
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.......
-
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.......
Sounds like you have a null value somewhere. Can you post the section of code that's giving you trouble?
-
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.......
-
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.......