473,794 Members | 2,738 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Ugly groupbox caption font after .NET 1.1 SP1 upgrade

Hi!

I have this medium sized solution with a couple of projects and stuff.
The generated application has an <appname>.exe.m anifest file to enable
XP themes. In the main window of the application I have several group
boxes, and even some group boxes within other group boxes.
FlatStyle=Syste m on these group boxes has always worked just fine.
Round corners on the borders and blue caption text (standard
Luna/Silver theme).

Just now, I installed .NET Framework 1.1 SP1 and all the group boxes
that were inside other group boxes has these large ugly fonts in the
caption which doesn't even fit the designated space. The group boxes
that are placed directly on the form works just fine. It's only the
ones inside other group boxes.

I've verified this on several computers. pre-SP1 works, post-SP1
doesn't. I've also created a blank project with a single form. One
group box within another group box. Same result.

Visual Studio.NET 2003 7.1.3088 (Visual Basic.NET 2003)
Windows XP Professional SP2 English
..NET Framework 1.1.4322 SP1

Has anyone else encountered this? Any recommendations on how to solve
it?

Best regards,

Dennis "Dempa" Sjogren
Dalarna University, Sweden

Nov 21 '05 #1
23 2172
This has not happened here once on any of our development systems that have
been upgraded.
"Dennis Sjogren" <la********@gma il.com> wrote in message
news:ch******** @odbk17.prod.go ogle.com...
Hi!

I have this medium sized solution with a couple of projects and stuff.
The generated application has an <appname>.exe.m anifest file to enable
XP themes. In the main window of the application I have several group
boxes, and even some group boxes within other group boxes.
FlatStyle=Syste m on these group boxes has always worked just fine.
Round corners on the borders and blue caption text (standard
Luna/Silver theme).

Just now, I installed .NET Framework 1.1 SP1 and all the group boxes
that were inside other group boxes has these large ugly fonts in the
caption which doesn't even fit the designated space. The group boxes
that are placed directly on the form works just fine. It's only the
ones inside other group boxes.

I've verified this on several computers. pre-SP1 works, post-SP1
doesn't. I've also created a blank project with a single form. One
group box within another group box. Same result.

Visual Studio.NET 2003 7.1.3088 (Visual Basic.NET 2003)
Windows XP Professional SP2 English
.NET Framework 1.1.4322 SP1

Has anyone else encountered this? Any recommendations on how to solve
it?

Best regards,

Dennis "Dempa" Sjogren
Dalarna University, Sweden

Nov 21 '05 #2
I can confirm that I see this too. VB Classic used to suffer from this
problem and I created a Groupbox Control specifically to overcome this.
Looks like I might have to reproduce it for .net.

Visual Styles seem to be a major problem for MS to comply with. Maybe they
should have created all new controls from scratch instead of wrapping the
old ones and then overcoming problems that they encounter. Sure it would
have meant more testing, but then they obviously don't test enough to
prevent these bugs from being reproduced anyway.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Brian Henry" <br**********@n ewsgroups.nospa m> wrote in message
news:O4******** ******@TK2MSFTN GP10.phx.gbl...
This has not happened here once on any of our development systems that
have been upgraded.
"Dennis Sjogren" <la********@gma il.com> wrote in message
news:ch******** @odbk17.prod.go ogle.com...
Hi!

I have this medium sized solution with a couple of projects and stuff.
The generated application has an <appname>.exe.m anifest file to enable
XP themes. In the main window of the application I have several group
boxes, and even some group boxes within other group boxes.
FlatStyle=Syste m on these group boxes has always worked just fine.
Round corners on the borders and blue caption text (standard
Luna/Silver theme).

Just now, I installed .NET Framework 1.1 SP1 and all the group boxes
that were inside other group boxes has these large ugly fonts in the
caption which doesn't even fit the designated space. The group boxes
that are placed directly on the form works just fine. It's only the
ones inside other group boxes.

I've verified this on several computers. pre-SP1 works, post-SP1
doesn't. I've also created a blank project with a single form. One
group box within another group box. Same result.

Visual Studio.NET 2003 7.1.3088 (Visual Basic.NET 2003)
Windows XP Professional SP2 English
.NET Framework 1.1.4322 SP1

Has anyone else encountered this? Any recommendations on how to solve
it?

Best regards,

Dennis "Dempa" Sjogren
Dalarna University, Sweden


---
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 #3
* "Mick Doherty" <EX***********@ AND.REMOVE.SQUA REBRACKETS.[mdaudi100#ntlwo rld.com]> scripsit:
Visual Styles seem to be a major problem for MS to comply with. Maybe they
should have created all new controls from scratch instead of wrapping the
old ones and then overcoming problems that they encounter. Sure it would
have meant more testing, but then they obviously don't test enough to
prevent these bugs from being reproduced anyway.


The support for Visual Styles in .NET 2.0 will be excellent from what
can be seen in the beta version of .NET 2.0. Most Visual Styles bugs
are fixed, and controls that currently don't support visual styles will
support them in .NET 2.0.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #4
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:O5******** *******@TK2MSFT NGP14.phx.gbl.. .

The support for Visual Styles in .NET 2.0 will be excellent from what
can be seen in the beta version of .NET 2.0. Most Visual Styles bugs
are fixed, and controls that currently don't support visual styles will
support them in .NET 2.0.


.... and then there'll be a new set of bugs for which we'll have to await the
release of VS2007 and purchase another upgrade to fix existing bugs. Looks
like MS have dropped the 'Check for Updates' method in Visual studio in
favour of the 'Buy New Bugs' method.
From what I've seen of VB2005 the controls are still wrapped around the old
Common Controls and so still have a lot of problems, although there is
better support for Visual Styles.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html

---
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 #5
Mick,

* "Mick Doherty" <EX***********@ AND.REMOVE.SQUA REBRACKETS.[mdaudi100#ntlwo rld.com]> scripsit:
The support for Visual Styles in .NET 2.0 will be excellent from what
can be seen in the beta version of .NET 2.0. Most Visual Styles bugs
are fixed, and controls that currently don't support visual styles will
support them in .NET 2.0.


... and then there'll be a new set of bugs for which we'll have to await the
release of VS2007 and purchase another upgrade to fix existing bugs. Looks
like MS have dropped the 'Check for Updates' method in Visual studio in
favour of the 'Buy New Bugs' method.
From what I've seen of VB2005 the controls are still wrapped around the old
Common Controls and so still have a lot of problems, although there is
better support for Visual Styles.


As long as the Windows Forms controls do not support all the
styles/behavior provided by the wrapped Common Controls, basing them on
a fully managed implementation will prevent the programmers from
extending the controls using p/invoke. Having this in mind, I think
it's better that the controls are still based on the native controls
Windows provides.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #6
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:OJ******** ******@TK2MSFTN GP12.phx.gbl...
Mick,

As long as the Windows Forms controls do not support all the
styles/behavior provided by the wrapped Common Controls, basing them on
a fully managed implementation will prevent the programmers from
extending the controls using p/invoke. Having this in mind, I think
it's better that the controls are still based on the native controls
Windows provides.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>


Any developer using .net should not be forced to use p/invoke to extend
controls. Dotnet is not Platform Specific so we should not use Paltform
Specific API calls except to do Platform Specific Tasks.
For Visual Appearance our controls do not need to be based upon the old
Common Controls. A control derived from Control can be made to look and act
like any of the Common Controls. It is a lot of work, I'll admit, but it is
not necessary to wrap the existing controls, they can be mimicked.

VB2005 has the new MenuStrip and ToolStrip Controls which are not based upon
the old Windows Controls, but are based upon ScrollableContr ol. I personally
don't like them, but they are certainly a step in the right direction.

I am not saying that we should totally abandon the old controls, just that
they should be a second choice and not the primary choice for controls. We
can still use the old Menu and Toolbar controls in VS2005, but they are not
in the default Toolbox.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
---
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 #7
Mick,

* "Mick Doherty" <EX***********@ AND.REMOVE.SQUA REBRACKETS.[mdaudi100#ntlwo rld.com]> scripsit:
styles/behavior provided by the wrapped Common Controls, basing them on
a fully managed implementation will prevent the programmers from
extending the controls using p/invoke. Having this in mind, I think
it's better that the controls are still based on the native controls
Windows provides.
Any developer using .net should not be forced to use p/invoke to extend
controls.


Full ACK. Some times ago I added a suggestion in MSDN Product Feedback
Center to support vertical progressbars (they are supported by the
Common Controls). The answer is that this feature is postponed, which
means that it won't appear in .NET 2.0. There are many similar
samples. The style could be added easily (just one property that sets
the according style bit, a job that can be implemented in a few
minutes). As long as there is no 1:1 wrapper for the Common Controls,
changing that they are based on the Windows Common Controls would
definitely break existing code. If I write an application in .NET 2.0
and use p/invoke to make a progressbar vertical, then this code would
/break/ if in .NET 3.0 the progressbar is not based on Windows Common
Controls and there is no managed replacement for the p/invoke stuff I
have written for .NET 2.0.

There was a similar problem with Microsoft Windows Common Controls 6.0
ActiveX. This component was /not/ based on the Windows Common Controls
unlike the 5.0 version.
Dotnet is not Platform Specific so we should not use Paltform
Specific API calls except to do Platform Specific Tasks.
Windows Forms have a "Windows" in their name, so they are intended to be
Windows specific.
For Visual Appearance our controls do not need to be based upon the old
Common Controls. A control derived from Control can be made to look and act
like any of the Common Controls. It is a lot of work, I'll admit, but it is
not necessary to wrap the existing controls, they can be mimicked.
I agree again. But for the moment I'd like to see Microsoft completing
the wrappers in order to make such a switch possible in future
versions. Yes, they could have done that in .NET 2.0, but they did not.
VB2005 has the new MenuStrip and ToolStrip Controls which are not based upon
the old Windows Controls, but are based upon ScrollableContr ol. I personally
don't like them, but they are certainly a step in the right direction.
But ScrollableContr ol is based on the Windows native control management
too, isn't it?
I am not saying that we should totally abandon the old controls, just that
they should be a second choice and not the primary choice for controls. We
can still use the old Menu and Toolbar controls in VS2005, but they are not
in the default Toolbox.


ACK.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #8
> Windows Forms have a "Windows" in their name, so they are intended to be
Windows specific. MS Windows is the Primary Target for dotnet applications, but Windows.Forms
can be used on other Platforms. Windows is the generic name that MS use for
a base object and so Windows is the logical label for them to give the
Namespace.

But ScrollableContr ol is based on the Windows native control management
too, isn't it?

I think that this is managed by the Framework. Without the Framework,
Windows has no idea what to do with a ScrollableContr ol, whereas, a button,
for example, can be created via p/invoke and windows knows exactly what it
is. Try to use that p/invoked button on another OS and it will fail, but
ScrollableContr ol will work just fine on any compatible system with the
Framework installed.
The more releases of this development tool and framework that depend upon
the common controls, the harder it is going to be to break away from that
dependancy. When we finally do break away, the project upgrade is going to
be similar to that between VB6 and VB.net (basically a total rewrite,
especially if you're using a lot of p/invoke).

I am forever playing around with standard controls, trying to fix minor
problems, and finding more problems. Sometimes it is just easier to write
the control from scratch.

I am certainly no expert on the FrameWork or even on dotnet. There is a lot
of information out there, but I hate reading. Maybe some of my observations
are wrong, but the opinions that I express are just that, my opinions. I
must also add that I have never written an application for a non MS OS and
so I may be wrong with some of my statements.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
---
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 #9
Mick,

I find your message has a very good point, when you want your dotNet program
to be platform independent, than you should keep yourself to the framework
and avoid any interaction with the OS direct.

Cor
Nov 21 '05 #10

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

Similar topics

9
3780
by: Randall Sell | last post by:
Can anyone confirm if I am being an idiot, or is this a bug in the CSS implementation of Netscape 7.x/Mozilla 1.4 ... give the following single HTML: <html> <head> <style type="text/css"> <!-- caption {
4
16725
by: Csaba Gabor | last post by:
What I'd like to do is to be able to set the font of a textarea element to the same font that another element is using (say, for example, an <INPUT type=text ...> element, but if that's a no go, then a generic element's font will do OK, too. What's the correct way to do this, please (so that it will also work for IE 6)? The motivation for this is that I have some text on the screen and I want to insert a textarea element between the...
8
3948
by: Wally | last post by:
I would like to have an image with a caption displayed below it. The size of the image will vary. The caption should not extend beyond the width of the image. How can I cause the text of the caption to wrap so that it will stay within the (varying) width of the image? Any ideas?
3
16879
by: Mr.Clean | last post by:
I am trying to mimic a Windows GroupBox control using fieldset, label and radio buttons. The problem lies in that I can not correctly do the radio buttons relative to the groupbox and the label doesn't get placed in the right place. The word Female should be to the right of the radio button. Should I use a label for the radio button's caption here instead? Can anyone help out? http://www.austinmetrobaseball.com/groupbox.html
0
3051
by: Chenghui Li | last post by:
We have a problem with the Windows XP theme: We have a IDE which allows other developers to develop visual programs for their customers. Our IDE allow them to set font for window captions easyly (through a dialog). It works fine fo W98, 2000, NT, and XP is the theme is Classic. But on XP if the theme is "Windows XP", the we have a problem: if the developer set the caption font to be say, "Script" (and all non-default font), then the...
1
1393
by: r_ahimsa_m | last post by:
Hello, Why the rule: caption { font-style: bolder; } on document containing:
14
2829
by: Roedy Green | last post by:
Is there a shortcut way to define the default font family (and characteristics) to be applied to all styles? -- Roedy Green Canadian Mind Products The Java Glossary http://mindprod.com
5
1184
by: Rob Panosh | last post by:
Hello, If I set the font of a form and menustrip all the controls and menu options will show using this font. The only issue I am having is the text that shows in the caption of the the form (me.text) is not honoring the font, I'm guesing that it should use the font assigned to the menu. Does anybody know how to set font for the foms caption? Thanks, Rob
2
3631
by: kheitmann | last post by:
OK, so I have a blog. I downloaded the "theme" from somewhere and have edited a few areas to suit my needs. There are different font themes within the page theme. Long story short, my "Text Posts" are supposed to be in the font: Georgia, but they are showing up in "Times New Roman"...blah! I can't find anything wrong in the code, but who am I trying to fool? I know nothing about this stuff. The code is below. The parts that I *think*...
0
9671
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10433
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10212
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10161
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7538
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6777
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5560
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4112
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2919
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.