Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to provide some vertical space between Docked text boxes

0 views
Skip to first unread message

N4709L

unread,
Jan 24, 2004, 7:21:12 PM1/24/04
to
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!


Bert Hyman

unread,
Jan 24, 2004, 7:40:25 PM1/24/04
to
In news:YZDQb.8936$Vx....@newssvr24.news.prodigy.com "N4709L"
<N47...@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 be...@visi.com

Kevin P. Fleming

unread,
Jan 25, 2004, 1:10:07 PM1/25/04
to
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.

N4709L

unread,
Jan 26, 2004, 11:13:34 PM1/26/04
to
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" <kpfl...@cox.net> wrote in message
news:3ETQb.11567$bg1.6749@fed1read05...

0 new messages