Mars base one Username: Jim Davis Password: yCrm33
Posts
1,284
[RESOLVED] Usercontrol on MDI Child cant get width/height of its parent
Hello!
A usercontrol placed on a form will be initialized before the acutal form. Thats not a problem as long as the form is not an mdi child, so the usercontrol can get the width and height properties of the form. But as long as i set the form to be an mdi child, the Width and the Height properties will be 0.
The problem is, i have done a usercontrol that will resize itself, to completely hide the actual form.
It works on plain forms, but i cant get it to work on MDI childs. It also hopeless to resize the mdi child at load, because it will be initialized after the usercontrol.