Hello i have some problems with a UC that i create. This UC only contains a
textbox.
When i insert the UC into a form of any app, no problem occurs.
The problem appears when i change the form font. When i do that, all the
controls of the form automatically change his font, including the UC, but
this appears with a strange design (The size of the textbox is greater then
the form of the UC).
I don't know what to do...
Tim Wilson - 15 Mar 2006 01:55 GMT
The Font property is an ambient property meaning that if the value is not
set it will be "inherited" from its parent. See the remarks section of the
Control.Font property in the help docs.
http://msdn2.microsoft.com/en-us/library/system.windows.forms.control.font.aspx
The TextBox will adjust its size to accomodate the font size. It may be that
the TextBox is resizing for the font causing it to become too large within
its container (the UserControl).

Signature
Tim Wilson
.NET Compact Framework MVP
> Hello i have some problems with a UC that i create. This UC only contains a
> textbox.
[quoted text clipped - 7 lines]
>
> I don't know what to do...