Frans Bouma's blog

Generator.CreateCoolTool();

Syndication

News

    Visit LLBLGen Pro's website

    Follow FransBouma on Twitter

    Add to Technorati Favorites

About me

Fun stuff I created

My work

WTF! .NET 1.1 SP1 gives butt-ugly Groupbox captions!

I decided to upgrade to .NET 1.1 SP1. Then I ran one of my .NET winforms applications which has nested groupbox controls on a winform and FlatStyle set to System so they will be XP themed.

Then I saw that the nested groupbox controls had their captions in bold arial font and this made the caption to be too big and the text wasn't readable. See this screenshot:



As you can see: a butt-ugly caption which is also crippled. This is an existing app, so I didn't do anything. It worked perfectly on .NET 1.1.

What to do? How can this be solved? I googled on this but all I find are some people having the same problem. Needless to say, I'm really pissed off by this. I hope there is an easy fix for this.

Update: It seems that when you add a panel and dock the groupbox inside the panel it works.So I now have to replace all nested group boxes with panels and dock the groupboxes inside these panels.

So Microsoft, how about FIXING this stupid bug A.S.A.P. ?

Published Thursday, January 20, 2005 3:36 PM by FransBouma

Filed under:

Comments

# re: WTF! .NET 1.1 SP1 gives butt-ugly Groupbox captions!@ Thursday, January 20, 2005 3:55 PM

Frans, did you recompile your app against the .NET 1.1 SP1 version? Do you have SP1 installed on the server as well as on the client? Note that there are 2 versions available of SP1: one for XP, etc. and another for Windows Server 2003. I'm interested in the answers because we're planning to upgrade our production environment ...
David

David Boschmans

# Repro case of nasty .NET 1.1 SP1 bug in groupbox control, Microsoft please read@ Thursday, January 20, 2005 11:50 PM

TrackBack

# re: WTF! .NET 1.1 SP1 gives butt-ugly Groupbox captions!@ Friday, January 21, 2005 2:37 AM

We had the same problem. Our resolution? Don't install SP1. :-|

I dealt personally with PSS in South Africa who told me that there was no known fix for the issue - in fact they did not seem to even be aware of it all (this was a few months ago). Unfortunatly for some reason i could not repro the bug in a small solution, and obviously i couldn't send them any of our production code, so the only resolution was to not install the service pack at all.

If you do get hold of a hotfix or patch, or can even repro the bug in a simple project, please please please send it to me at kevint@gmail.com

KevinT

# re: WTF! .NET 1.1 SP1 gives butt-ugly Groupbox captions!@ Friday, January 21, 2005 5:14 AM

I "fixed" this by setting the FlatStyle of all nested GroupBoxes to Standard.
This is a really ugly bug.

ru

# re: WTF! .NET 1.1 SP1 gives butt-ugly Groupbox captions!@ Friday, January 21, 2005 5:54 AM

I've compiled a reprocase, I blogged about this here: http://weblogs.asp.net/fbouma/archive/2005/01/21/358006.aspx

I've tried everything, no luck. the only 'solution' is docking the groupbox in a panel and use the panel to position/size the groupbox. Pretty lame.

Frans Bouma

# re: WTF! .NET 1.1 SP1 gives butt-ugly Groupbox captions!@ Thursday, February 03, 2005 9:22 PM

I've got this problem,too...
thank you for your advice,anyway.

KRISS