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...

Re: User Control by Tim

Tim
Tue Mar 14 18:55:38 CST 2006

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).

--
Tim Wilson
.NET Compact Framework MVP

"Rodrigo Ferreira" <rjrferreira@gmail.com> wrote in message
news:ehxWH%231RGHA.4956@TK2MSFTNGP09.phx.gbl...
> 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...
>
>
>