By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,234 Members | 1,908 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,234 IT Pros & Developers. It's quick & easy.

Panel margins (not dockpadding)

P: n/a
Hi,

I'm creating my own control derived from the Panel winform control.

I want to restrict the user from putting controls inside a margin of 10
from all the edges in my control. Inside this margin I want to draw my
own frame/border.

I know I can set DockPadding.All = 10, but when the user puts the my
control on a form, I want dockkpadding.all = 0, but still have a 10
point margin around my control.

That means if the user sets dockpadding.all = 15, then the margin of all
edges must be 25.

Hope you understand what I mean.

Any idea??

Thanks!

M O J O

Nov 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.