Hi,
I am trying to create a user control that will act as a container for
other controls.
I have a control with some child controls on it, but one (or more) of
the child controls needs to be a content area where the user can drop
additional controls. Within this content area I want the user to be
able to select, drag, drop and otherwise manipulate controls, but
outside of the area I want the user control to be treated as a single
entity..
I found out the "EnableDesignMode" function is what i need but it is
only supported in version 2.0..
Is there any way i can solve this problem in 1.1 without this
functions?
Thanks,
Hilla
jokiz - 09 Jan 2006 11:51 GMT
i solved this by defining a custom non-client area (handling
wm_ncpaint, wm_nccalcsize)
Hilla - 09 Jan 2006 12:04 GMT
Can u show me sample code.. or elaborate more?
didnt quite understand..
Thanks,
hhiillaa
jokiz - 09 Jan 2006 12:12 GMT
http://groups.google.com/group/microsoft.public.dotnet.framework.windowsforms.co
ntrols/browse_frm/thread/aa5a5a9ac6bf86d0/f0e77969a8a09196?q=non-client+area+&rn
um=4#f0e77969a8a09196
if the link does not work, try searching "Reducing the clientarea of a
custom control" under windowsforms.controls