Is there any way to control a TextBox Size property's Height? Besides making
it Multiline?
Everytime I set the Size, it always reverts back to Size.Height = 20 (or
whatever value based on the current font, I think). I've tried setting the
Min/Max Size but that only seems to hold during design time.
Jared - 10 May 2006 04:56 GMT
I use multiline textbox as sizable alternative. Never considered the side
effects.
> Is there any way to control a TextBox Size property's Height? Besides
> making
> it Multiline?
> Everytime I set the Size, it always reverts back to Size.Height = 20 (or
> whatever value based on the current font, I think). I've tried setting the
> Min/Max Size but that only seems to hold during design time.
Mark Atkinson - 26 May 2006 18:03 GMT
Figured it out based on another post in this forum.
TextBoxBase.AutoSize = false
However, things might get messy if you view the textbox in designer.
> Is there any way to control a TextBox Size property's Height? Besides making
> it Multiline?
> Everytime I set the Size, it always reverts back to Size.Height = 20 (or
> whatever value based on the current font, I think). I've tried setting the
> Min/Max Size but that only seems to hold during design time.