L
Lee
(Initially posted in microsoft.public.dotnet.framework.controls, but I
am posting it here after not having gotten a response after 3 days.)
Visual Studio 2005 + Windows XP (with all service packs)
I have a user control defined as follows:
==========
namespace ControlLibrary
{
public class LabelEx : System.Windows.Forms.Label
{
public LabelEx()
{
this.AutoSize = true;
this.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
}
}
}
==========
When I drop this control on a Form and then change the Font on the
Form, the Font on this control does not change while the Font on the
other controls on the form (standard controls and other user controls)
does.
When I look at the Form.Designer.cs file, the Font for this control is
"MS Sans Serif" -- what the Form's font was before it was changed.
The question is why is the Font of this control not reflecting the
change in the Font on the Form?
am posting it here after not having gotten a response after 3 days.)
Visual Studio 2005 + Windows XP (with all service packs)
I have a user control defined as follows:
==========
namespace ControlLibrary
{
public class LabelEx : System.Windows.Forms.Label
{
public LabelEx()
{
this.AutoSize = true;
this.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
}
}
}
==========
When I drop this control on a Form and then change the Font on the
Form, the Font on this control does not change while the Font on the
other controls on the form (standard controls and other user controls)
does.
When I look at the Form.Designer.cs file, the Font for this control is
"MS Sans Serif" -- what the Form's font was before it was changed.
The question is why is the Font of this control not reflecting the
change in the Font on the Form?