Code Comments
Programming Forum and web based access to our favorite programming groups.Hi. I am trying to implement my user control which inherits Windows.Forms and I want to make it skinnable. So I use BorderStyle.None on the form and I will draw the borders and title bar. But in this case if I add menu it must be offseted from the top by the height of my skinnable title bar. How can I achieve that. How I can set som borders of the form where all the controls can be drawned and the rest I will draw myself( ie the borders and title bar). I tried to set the DockPadding.Top property to 20 for example but the menu is not padded. It seems that it is not docked to the top of the form , but it uses some other way to bound to the top. Can I make the menu to appear for example 20 pixels padded from the top? Thanks in advance.
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.