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.