all groups > dotnet windows forms designtime > january 2006 >
You're in the

dotnet windows forms designtime

group:

replacement for "EnableDesignMode" function for .net 1.1


replacement for "EnableDesignMode" function for .net 1.1 hhiillaa
1/8/2006 1:49:56 AM
dotnet windows forms designtime:
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
Re: replacement for "EnableDesignMode" function for .net 1.1 jokiz
1/9/2006 3:51:41 AM
i solved this by defining a custom non-client area (handling
wm_ncpaint, wm_nccalcsize)
Re: replacement for "EnableDesignMode" function for .net 1.1 Hilla
1/9/2006 4:04:41 AM
Can u show me sample code.. or elaborate more?
didnt quite understand..
Thanks,

hhiillaa

Re: replacement for "EnableDesignMode" function for .net 1.1 jokiz
1/9/2006 4:12:02 AM
http://groups.google.com/group/microsoft.public.dotnet.framework.windowsforms.controls/browse_frm/thread/aa5a5a9ac6bf86d0/f0e77969a8a09196?q=non-client+area+&rnum=4#f0e77969a8a09196

if the link does not work, try searching "Reducing the clientarea of a
custom control" under windowsforms.controls
AddThis Social Bookmark Button