Window Parent is always null

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!

Whether the Parent is a Page or another Window, whether the Window is modal or modeless, the Parent property is always null.

  • You must to post comments

Yes, correct. But you can use the owner. If you change the test like this:

new GrandChildWindow().Show(this);


var parentName = "null";
 if (this.Owner != null)
 parentName = this.Owner.ToString();

label2.Text = parentName;


You’ll get the owner of the grandchild form.

There is one aspect of the form ownership that is not working well, when a form is activated it should bring to top and in front of it the forms that it owns.

Also, a form can be created as a child control of another form. If you set the TopLevel property to false you can assign the Parent of a form and it will behave just like any child control.

When the form is an Mdi Child, the Parent property should refer to the MdiClient control, TopLevel  is still false in this case, but IsMdiChild is true.



  • You must to post comments

This reports concerns the Parent property of Forms. I was under the impression that Windows Forms fills the Parent property of Forms. I just checked and it doesn’t. So Wisej behaves like it should.

  • You must to post comments

Hi Tiago, the Parent property on a child control? I can’t reproduce, I always get the parent. Can you give steps?

  • You must to post comments

Thanks Tiago,

I have logged WJ-7294 for that issue.

Best regards

  • You must to post comments
Showing 4 results
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
File Name Size
There are currently no files uploaded.
Maximum number of files 5, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json mixin.theme