473,397 Members | 1,960 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,397 software developers and data experts.

Nested Groupboxes

If xp styles are in use (Application.EnableVisualStyles) and you nest
one group box inside another then the text (caption) of the inner
groupbox is automatically displayed in bold regardless of the font
setting. In addition the length of the text is limited to what it would
be if the text wasn't bold so the text is effectivly truncated.

Is there a way around this problem?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 21 '05 #1
3 1551
This appears to be a bug introduced with Framework 1.1 SP1. A quick fix is
to Dock a panel inside the groupbox and place the nested Groupbox on the
panel.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Joe Griffith" <jo******@cox.net> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
If xp styles are in use (Application.EnableVisualStyles) and you nest
one group box inside another then the text (caption) of the inner
groupbox is automatically displayed in bold regardless of the font
setting. In addition the length of the text is limited to what it would
be if the text wasn't bold so the text is effectivly truncated.

Is there a way around this problem?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004
Nov 21 '05 #2
Thanks. Adding a panel in the outer groupbox does indeed solve the
problem (or at least mask it). Seems sort of crude... because I guess
it is.

Nested groupboxes isn't a pattern I use much, but I don't know where I
used it in a solution that has several hundred forms. I guess I'm going
to have to look at every one or just wait till our customers complain.

I'm glad you mentioned that it was introduced with SP1 because I
couldn't believe that I had let it get into our production product. Are
there any more 'introduced bugs' you know of?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 21 '05 #3
I'm not aware of any others. This one stood out for me though, since it's
really an introduction of an old problem. This is the same behaviour as in
VBClassic and I actually wrote a Groupbox control to overcome it when I was
coding in VB6.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Joe Griffith" <jo******@cox.net> wrote in message
news:uT**************@TK2MSFTNGP12.phx.gbl...
Thanks. Adding a panel in the outer groupbox does indeed solve the
problem (or at least mask it). Seems sort of crude... because I guess
it is.

Nested groupboxes isn't a pattern I use much, but I don't know where I
used it in a solution that has several hundred forms. I guess I'm going
to have to look at every one or just wait till our customers complain.

I'm glad you mentioned that it was introduced with SP1 because I
couldn't believe that I had let it get into our production product. Are
there any more 'introduced bugs' you know of?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

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

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

Similar topics

6
by: Andy Baker | last post by:
Hi there, I'm learning Python at the moment and trying to grok the thinking behind it's scoping and nesting rules. I was googling for nested functions and found this Guido quote:...
4
by: Dave | last post by:
Seems to be a bug when a GroupBox contains another GroupBox. The caption of the child seems to get truncated/bloated when the application is run with Application.EnableVisualStyles() and the...
8
by: Robert W. | last post by:
I've almost completed building a Model-View-Controller but have run into a snag. When an event is fired on a form control I want to automatically updated the "connnected" property in the Model. ...
3
by: Steven Smith | last post by:
Hi guys I'm using object variables to address several controls on a form like so... Private Sub cmdReset_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _ Handles...
6
by: Frank | last post by:
I have several groupboxes in a form, and I need to go through them to check some things. Thus I have a Sub like this: Dim grpbox_temp As GroupBox Dim cbox_temp As CheckBox For Each...
4
by: Philip Wagenaar | last post by:
I have made a form with a tab that containts groupboxes and those contain checkboxes. When I run the application sometimes the outlining for some groupboxes are not shown, if I switch tabs and...
77
by: Peter Olcott | last post by:
http://www.tommti-systems.de/go.html?http://www.tommti-systems.de/main-Dateien/reviews/languages/benchmarks.html The above link shows that C# is 450% slower on something as simple as a nested loop....
2
by: Dmenace | last post by:
Okay, I've got 2 groupboxes that both have different information. I have written my own function, and get no errors so I'm not sure why is not working. Is there something with groupboxes that you...
3
by: Joe | last post by:
We have a customer where one of there computers is displaying a screen sort of oversized. The screen has 3 groupboxes in it. There is one that gets stretched to the right and bottom off the screen...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.