Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / May 2006

Tip: Looking for answers? Try searching our database.

TextBox Size.Height

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mark Atkinson - 10 May 2006 00:29 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.