Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
hr38581 hr38581 is offline
external usenet poster
 
Posts: 3
Default TextBox with Fixed Width and Autosized Height

I am attempting to create a form using ActiveX controls (MS Word 2000). I
would like a TextBox that has a fixed width but auto-sizes the height to the
users text entry. The user will be entering multiple lines with hard line
breaks (with possibly some formatting such as bulleted lists) into the text
field.
I have set the following properties: AutoSize=True, EnterKeyBehavior=True,
IntegralHeight=True, MaxLength=0, MultiLine=True, WordWrap=True, Height=
49.95, and Width=436.75. The TextBox starts out fine when I save my form, but
when a user begins to enter text, the TextBox re-sizes to about one character
width (losing my desired fixed width of 436.7) and then increases the height
of the TextBox to accommodate the remaining text entry.
The Help on the AutoSize property states €œFor a multiline text box that
contains no text, setting AutoSize to True automatically displays the text as
a column. The width of the text column is set to accommodate the widest
letter of that font size. The height of the text column is set to display
the entire text of the TextBox. For a multiline text box that contains text,
setting AutoSize to True automatically enlarges the TextBox vertically to
display the entire text. The width of the TextBox does not change.€
I have tried with default text that equals my desired TextBox width, and if
the user only adds to the default text, then the width is maintained, but if
the user deletes or overwrites the default text, the width of the TextBox is
reduced, despite what the Help states.

How can I create the TextBox with a fixed width but auto-sized height?

Thank You!
 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixed Width Font ArthurJ Microsoft Word Help 7 April 22nd 23 09:34 AM
table height & width LostDesertGirl Tables 1 January 26th 08 08:29 PM
Cell height/width button jen_writer Tables 2 January 8th 08 07:24 PM
Word textbox that allows a fixed number of characters SCC Microsoft Word Help 1 April 4th 07 03:32 PM
How Do I Know The Exact Width and Height of A Table? mrfixit Page Layout 3 February 8th 05 09:37 AM


All times are GMT +1. The time now is 08:30 AM.

Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"