Monday, November 26, 2007

MDIParent and/or Parent Property is Null! Timing Issue

One of the problems I faced today was when I was attempting to reference some properties of the MDIParent of a child form.

The code was executing in the constructor scope of the child form. It turns out that until the Activation scope any attempt to reference the parent form will result in a null value.

So I moved the neccessary code to a method wired up to the Active event of the form and received a reference as expected.


Anonymous said...

Excellent goods from you, man. I've have in mind your stuff prior to and you are simply extremely great. I actually like what you've received here, really like what you're saying and the best way during which you assert it. You're making it entertaining and you continue to take care of to keep it sensible.
I can not wait to read much more from you. This
is really a wonderful site.

Ultra Force review **

Anonymous said...

Hi there! I could have sworn I've been to this web site before but after looking at a few of the articles I realized it's new to me.

Anyways, I'm certainly pleased I discovered it and I'll be bookmarking it and checking back often!

Check out my blog ... small business loans

Anonymous said...

Hey very nice blog!

Le Parfait

Anonymous said...

Hi there! This is my 1st comment here so I just wanted to give a quick shout out and tell you I truly enjoy
reading through your blog posts. Can you suggest any
other blogs/websites/forums that go over the same topics?

Thanks a ton!

My web page - Rejuvenex info

Anonymous said...

Great post however , I was wondering if you could write a litte more on this subject?

I'd be very thankful if you could elaborate a little bit further. Cheers!

how to build muscle