I'd like to have several Textbox controls stacked vertically within a panel.
Each Textbox will have its .Dock property set to Top. This enables all of
the Textbox controls
to resize as the panel resizes, which is the effect I'd like.

However, since each Textbox has its .Dock property set to Top, the Textbox
controls have no space between them. I'd like to have some space between the
Textbox controls. How can this be easily achieved? Or should I be satisfied
that the Textbox controls have a common top and bottom edge?

What I am trying to achieve is a vertically stacked set of Textboxes, with
some vertical space between them, that will automatically resize in width as
the panel changes width.

Thanks!

Re: How to provide some vertical space between Docked text boxes by Bert

Bert
Sat Jan 24 18:40:25 CST 2004

In news:YZDQb.8936$Vx.6971@newssvr24.news.prodigy.com "N4709L"
<N4709L@microsoft.com> wrote:

> However, since each Textbox has its .Dock property set to Top, the
> Textbox controls have no space between them. I'd like to have some space
> between the Textbox controls. How can this be easily achieved?

Just put another control between them, also Dock.Top. A blank label would
work, or if you want to get sexy try a splitter.

--
Bert Hyman St. Paul, MN bert@visi.com

Re: How to provide some vertical space between Docked text boxes by Kevin

Kevin
Sun Jan 25 12:10:07 CST 2004

N4709L wrote:

> What I am trying to achieve is a vertically stacked set of Textboxes, with
> some vertical space between them, that will automatically resize in width as
> the panel changes width.

Then you don't need Dock at all, you just need to anchor the Textboxes
to the left and right edges of their container (the Panel). They will
then resize as the panel is resized.


Re: How to provide some vertical space between Docked text boxes by N4709L

N4709L
Mon Jan 26 22:13:34 CST 2004

Using anchor instead of dock is a much better way to achieve the automatic
resizing and positioning that I desire. Thanks for the tip!
-Ron

"Kevin P. Fleming" <kpfleming@cox.net> wrote in message
news:3ETQb.11567$bg1.6749@fed1read05...
> N4709L wrote:
>
> > What I am trying to achieve is a vertically stacked set of Textboxes,
with
> > some vertical space between them, that will automatically resize in
width as
> > the panel changes width.
>
> Then you don't need Dock at all, you just need to anchor the Textboxes
> to the left and right edges of their container (the Panel). They will
> then resize as the panel is resized.
>