Stonkie
Well-known member
- Joined
- Sep 12, 2007
- Messages
- 279
- Programming Experience
- 1-3
I am building custom forms to be inserted as toolboxes into an MDI application. I am painting the title bar manually, and I would like to be able to use my custom drawn title bar as any other title bar.
That means, I would like to have controls docked in it without going over my title bar and such. It seems like the easiest solution would be to set the client area of my form manually to the desired value or set some margin/padding delimiter so that the client area is calculated automatically when the form resizes.
However, no such property exists and the ClientRectangle property is read only.
I am looking for a way to do this so that I can simply build my toolboxes in the designer with this client area already calculated. Is there any way to do that without going through all those inherited forms and padding my controls with 20 pixels on the top?
That means, I would like to have controls docked in it without going over my title bar and such. It seems like the easiest solution would be to set the client area of my form manually to the desired value or set some margin/padding delimiter so that the client area is calculated automatically when the form resizes.
However, no such property exists and the ClientRectangle property is read only.
I am looking for a way to do this so that I can simply build my toolboxes in the designer with this client area already calculated. Is there any way to do that without going through all those inherited forms and padding my controls with 20 pixels on the top?