Word 2002: Textbox Fixed width and autosize height

J

Jinjer

Hi.

Is there a way to set an ActiveX textbox control to have a fixed width but
an autosized height?

When I set the textbox autosize and multiline properties to true, the
behavior is not quite what I want. On testing it, if I enter the textbox and
exit without typing anything, it shrinks to the width of a single character.
When re-entering the textbox and typing something, it puts in one letter per
line.

I tried setting the width in code, but although it will set the width
initially, the same behavior occurs as described above.

Any suggestions?
 
C

christoph.sammer

Am Freitag, 18. Dezember 2009 20:25:01 UTC+1 schrieb Jinjer:
Hi.

Is there a way to set an ActiveX textbox control to have a fixed width but
an autosized height?

When I set the textbox autosize and multiline properties to true, the
behavior is not quite what I want. On testing it, if I enter the textbox and
exit without typing anything, it shrinks to the width of a single character.
When re-entering the textbox and typing something, it puts in one letter per
line.

I tried setting the width in code, but although it will set the width
initially, the same behavior occurs as described above.

Any suggestions?

Does anybody have a solution for jinjer's problem? I have the same problem and I dont' know how to handle it. There's no solution all over the internet...
 
S

Stefan Blom

I suspect that not many people make use of ActiveX controls in Word. They are
difficult to deal with, at best... For one thing, they trigger macro security on
many Word installations, forcing the document into Design mode. Using legacy
form fields or the new content controls makes more sense today.

--
Stefan Blom
Microsoft Word MVP





in message

Am Freitag, 18. Dezember 2009 20:25:01 UTC+1 schrieb Jinjer:
Hi.

Is there a way to set an ActiveX textbox control to have a fixed width but
an autosized height?

When I set the textbox autosize and multiline properties to true, the
behavior is not quite what I want. On testing it, if I enter the textbox and
exit without typing anything, it shrinks to the width of a single character.
When re-entering the textbox and typing something, it puts in one letter per
line.

I tried setting the width in code, but although it will set the width
initially, the same behavior occurs as described above.

Any suggestions?

Does anybody have a solution for jinjer's problem? I have the same problem and I
dont' know how to handle it. There's no solution all over the internet...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top