TextBox resizing

J

jy836

I have anchored a text box to all sides of a form so that when the form is
resized, the text box resizes too. However, the form may or may not have a
horizontal scollbar (depending on whether or not WordWrap is enabled). It
will always have a vertical scrollbar. My question is, how do you write code
so that the text box will perfectly fit inside the edges of the form, with
the scrollbar(s) directly up against the edges of the form? Thanks.
 
H

Herfried K. Wagner [MVP]

* "jy836 said:
I have anchored a text box to all sides of a form so that when the form is
resized, the text box resizes too. However, the form may or may not have a
horizontal scollbar (depending on whether or not WordWrap is enabled). It
will always have a vertical scrollbar. My question is, how do you write code
so that the text box will perfectly fit inside the edges of the form, with
the scrollbar(s) directly up against the edges of the form? Thanks.

Set its 'Dock' proeprty to 'Fill'.
 

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