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 / WinForm General / December 2006

Tip: Looking for answers? Try searching our database.

Why don't Menus, Status Bars, etc. Decrease Form Client Area?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joseph Geretz - 21 Dec 2006 00:40 GMT
I laid out all my form widgets based on this.ClientRectangle. I expected
that when adding a Menu this would decrement from the Form's client area,
since that's what I'm used to from my years of VB6 development. But this
didn't happen. So is the difference between the Form size and its
ClientRectangle simply the width of the border and the title bar? Shouldn't
controls which 'dock' such as Menu and Status Bar reduce the size of the
ClientRectangle as well?

Thanks for your advice.

Joseph Geretz
Jeff Gaines - 21 Dec 2006 11:17 GMT
On 21/12/2006 in message <#9XKtjJJHHA.3668@TK2MSFTNGP02.phx.gbl> Joseph
Geretz wrote:

>I laid out all my form widgets based on this.ClientRectangle. I expected
>that when adding a Menu this would decrement from the Form's client area,
[quoted text clipped - 3 lines]
>Shouldn't controls which 'dock' such as Menu and Status Bar reduce the
>size of the ClientRectangle as well?

You're correct about the ClientRectangle and it doesn't adjust for docked
controls, you need to do a few more calculations, sorry!

Signature

Jeff Gaines
Damerham Hampshire UK


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.