473,322 Members | 1,421 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Group Box Controls Overlap

Hello,

When inserting a label into a group box, if the label exceeds the width
dimensions of the group box,
the group box lines (or a portion thereof) disappear. In a panel i just
<send to back>.
This doesn't seem to work to for a group box.

How can i ensure the border lines of group box are always displays,
regardless of the size of any of its child controls?
Do i have pop them into a panel and stick that into the group box? (seems a
bit redundant)
Note i dont want to alter the size of the child controls, i just want them
to disappear under the group box border if they
would, for any reason, overlap.

Thanks
Richard
Nov 21 '05 #1
2 3111
"Richard Myers" <fa**@address.com> schrieb:
When inserting a label into a group box, if the label exceeds the width
dimensions of the group box,
the group box lines (or a portion thereof) disappear. In a panel i just
<send to back>.
This doesn't seem to work to for a group box.

How can i ensure the border lines of group box are always displays,
regardless of the size of any of its child controls?
Do i have pop them into a panel and stick that into the group box? (seems
a
bit redundant)


AFAIK that's the cleanest way. Add a panel with 'Dock' set to 'Fill' to the
groupbox and then place the controls in the panel.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #2

"Richard Myers" <fa**@address.com> wrote in message
news:OS**************@TK2MSFTNGP12.phx.gbl...
Hello,

When inserting a label into a group box, if the label exceeds the width
dimensions of the group box,
the group box lines (or a portion thereof) disappear. In a panel i just
<send to back>.
This doesn't seem to work to for a group box.

How can i ensure the border lines of group box are always displays,
regardless of the size of any of its child controls?
Do i have pop them into a panel and stick that into the group box? (seems a bit redundant)
Note i dont want to alter the size of the child controls, i just want them
to disappear under the group box border if they
would, for any reason, overlap.


its like putting a gallon of water into a quart jug.
You can check in code if the ( x-position plus width) of the group box is
less than that of the control,
if so, then you may want to adjust the width of the control programatically.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.799 / Virus Database: 543 - Release Date: 11/19/2004
Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Lyn | last post by:
Hi, I have a form which contains a number of subforms in different pages of a tab control. In the detail section of each subform, I list records related to the main form record, but from...
4
by: Iwan Petrow | last post by:
Hi, I have a window form with controls (labels, buttons...). I want the user to have possibility to change the font (name and size) of the controls. But when the font is changed the size of the...
1
by: Andrew | last post by:
Hi, friends, This drove me nuts: I had two web user controls: header.ascx and copyright.ascx. I planed to put them on each .aspx pages: Header on the top, and Copyright at the bottom. ...
1
by: Crirus | last post by:
I know subject is confusing... This is the ideea: I have 3 controls..custom. I have a control that act as a container for them.. does 3 containers fill completly the container one... That...
2
by: Dan Aldean | last post by:
Hello, I place in a web application some controls: labels, text boxes, buttons. Labels tend to overlap the text boxes if the text is long and the text box is not placed far enough from the...
13
by: Mike S | last post by:
I came across the following paragraph in the "Semantics" section for simple assignment in N1124 (C99 draft) and I'm wondering if I'm interpreting it right: 6.5.16.1p3: If the value being...
4
by: Charlie Brown | last post by:
I have a form with 2 custom controls that can be dragged around by a user. How can I check if they overlap each other without performing some kind of Collision detection on them? Is there...
5
by: Bill Nguyen | last post by:
I put 4 webbrower controls on a winform. I can set the initial position of the controls during design time. however, I need to be able to allow isers to resize the windows (maximize, for example)...
6
by: Cirene | last post by:
Im thinking about purchasing the RadControls for ASP.NET AJAX, by Telerik. Any advice, suggestions, or opinions? What has been your experience? Link: ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.