Have you tried this.ActiveMdiChild.
Actually you are trying to use a Class and not the currect object, thats why it gives a NullReference Exception. If you want to access the current instance of the object from the code, you should be using this.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 15
Thread: Accessing current Mdi childThreaded View
|
Click Here to Expand Forum to Full Width |