Hey all,
Is there some bug with WinForms? Since installing the Service Pack for
fx1.1, putting a groupbox inside another, when both have their FlatStyle set
to System the nested groupbox has its label/title text 'bloated' and
truncated (removing the common control manifest fixed it, but... Then it
doesn't look as good :).
Thanks,
L
>>>BEGIN CODE Form1.cs<<<
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace WindowsApplication1
{
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.GroupBox groupBox5;
private System.Windows.Forms.GroupBox groupBox6;
private System.Windows.Forms.GroupBox groupBox13;
private System.ComponentModel.Container components = null;
public Form1()
{
InitializeComponent();
}
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
private void InitializeComponent()
{
this.groupBox5 = new System.Windows.Forms.GroupBox();
this.groupBox6 = new System.Windows.Forms.GroupBox();
this.groupBox13 = new System.Windows.Forms.GroupBox();
this.groupBox5.SuspendLayout();
this.groupBox6.SuspendLayout();
this.SuspendLayout();
//
// groupBox5
//
this.groupBox5.Controls.Add(this.groupBox6);
this.groupBox5.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.groupBox5.Location = new System.Drawing.Point(8, 8);
this.groupBox5.Name = "groupBox5";
this.groupBox5.Size = new System.Drawing.Size(248, 128);
this.groupBox5.TabIndex = 1;
this.groupBox5.TabStop = false;
this.groupBox5.Text = "groupBox1";
//
// groupBox6
//
this.groupBox6.Controls.Add(this.groupBox13);
this.groupBox6.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.groupBox6.Location = new System.Drawing.Point(16, 24);
this.groupBox6.Name = "groupBox6";
this.groupBox6.Size = new System.Drawing.Size(184, 88);
this.groupBox6.TabIndex = 0;
this.groupBox6.TabStop = false;
this.groupBox6.Text = "groupBox1";
//
// groupBox13
//
this.groupBox13.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.groupBox13.Location = new System.Drawing.Point(8, 24);
this.groupBox13.Name = "groupBox13";
this.groupBox13.Size = new System.Drawing.Size(144, 40);
this.groupBox13.TabIndex = 0;
this.groupBox13.TabStop = false;
this.groupBox13.Text = "groupBox1";
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(272, 158);
this.Controls.Add(this.groupBox5);
this.Name = "Form1";
this.Text = "Form1";
this.groupBox5.ResumeLayout(false);
this.groupBox6.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
}
}
>>>END CODE<<<
>>>BEGIN MANIFEST Form1.exe.manifest<<<
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="CompanyName.ProductName.YourApplication"
type="win32"
/>
<description>Your application description here.</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
>>>END MANIFEST<<<
John Vottero - 18 Sep 2004 19:16 GMT
> Hey all,
> Is there some bug with WinForms? Since installing the Service Pack for
> fx1.1, putting a groupbox inside another, when both have their FlatStyle
> set to System the nested groupbox has its label/title text 'bloated' and
> truncated (removing the common control manifest fixed it, but... Then it
> doesn't look as good :).
I was wondering what had happened to one of our dialogs, it didn't occur to
me that SP1 might be the cause.
I'm seeing the same behavior. The group box is fine in the forms designer
but the text is a larger font and truncated when run in production with
EnableVisualStyles (no manifest).
robby valles - 24 Sep 2004 01:13 GMT
We're seeing the same behavior too. We already have customers calling about
this. Has anyone found a way to fix this?
> Hey all,
> Is there some bug with WinForms? Since installing the Service Pack for
[quoted text clipped - 130 lines]
> </assembly>
> >>>END MANIFEST<<<
Mick Doherty - 24 Sep 2004 18:03 GMT
Quick Hack:
Dock a panel to the parent groupbox and add the nested groupbox to the
panel.

Signature
Mick Doherty
http://dotnetrix.co.uk/nothing.html
> We're seeing the same behavior too. We already have customers calling
> about
[quoted text clipped - 135 lines]
>> </assembly>
>> >>>END MANIFEST<<<
robby valles - 24 Sep 2004 19:05 GMT
Thanks, we have over a hundred windows forms in our application! Does
microsoft look at this group?!
> Quick Hack:
>
[quoted text clipped - 145 lines]
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004