Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Design Time / January 2006

Tip: Looking for answers? Try searching our database.

replacement for "EnableDesignMode" function for .net 1.1

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
hhiillaa - 08 Jan 2006 09:49 GMT
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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.