Re: GroupBox client area?




Thank you. Knew it was simple.

I went with another container control (for other reasons), but
this will come in useful later.

/JB

On Thu, 11 Jan 2007 14:38:25 +0100, "Mike Powell"
<michael@xxxxxxxxxxxx> wrote:

Hi Joergen,
you need to use the GroupBox.DisplayRectangle, this is the area that is used
to display the various controls

Mike Powell
www.ramuseco.com

"Joergen Bech @ post1.tele.dk>" <jbech<NOSPAMNOSPAM> wrote in message
news:avaqp21da68hnbb7k8ds19icshchhsdpm5@xxxxxxxxxx

I am trying to create GroupBox controls and add controls
to those dynamically, but how do I find the *real* "client"
rectangle area of a GroupBox control so I can position
child controls correctly?

As far as I can tell, the ClientRectangle property includes
the area where the groupbox border and caption are drawn :(

Any ideas? I am sure I am missing something simple here.

TIA,

Joergen Bech





.



Relevant Pages

  • Re: Get all controls on Form?
    ... > but not those in GroupBox controls or TabControl,... ... > I dont' want to go through Controls collection of all those Container ... Herfried K. Wagner [MVP] ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • UserControls - Defining where child controls can go
    ... I'm writing a UserControl that can contain other controls (Like the Panel and ... GroupBox controls). ... looks like a panel) defines where the controls can be placed and where they ...
    (microsoft.public.dotnet.languages.csharp)
  • Sue summons frog
    ... development below the front castle is the tourism that controls ... The cheeses, committees, and reasons are all temporary and friendly. ... due administrative balls. ... Every generous mugs lift Linda, ...
    (sci.crypt)
  • Re: Should all under-25s be reversably steralised?
    ... child-per-family law has been reasonably successful in controlling ... population growth, it has raised the problems of ethnic cleansing, ... hormonal reasons. ... You show here that you would use breeding controls to produce the ...
    (uk.politics.misc)
  • Re: Should all under-25s be reversably steralised?
    ... child-per-family law has been reasonably successful in controlling ... size of family for responsible parents. ... hormonal reasons. ... You show here that you would use breeding controls to produce the ...
    (uk.politics.misc)