WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

TextBox with Fixed Width and Autosized Height

 
   Home -> Office -> User Forms RSS
Next:  I need glucose and blood pressure daily record  
Author Message
hr38581

External


Since: May 02, 2008
Posts: 6



(Msg. 1) Posted: Tue Aug 05, 2008 12:24 pm
Post subject: TextBox with Fixed Width and Autosized Height
Archived from groups: microsoft>public>word>vba>userforms (more info?)

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
user’s 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 in advance.
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> User Forms All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET