By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,678 Members | 1,158 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,678 IT Pros & Developers. It's quick & easy.

How to make a tall, thin form?

P: n/a
How can I make a Form that looks and feels like a normal
Windows Form but that is *very* narrow? In some cases, this
needs ot be /far/ less than the apparent, 112 pixel, intrinsic limit
that VB 2003 seems to impose.

This form doesn't have a title bar, controlbox or any other buttons
(it's a popup form that will wrap neatly around an automatically-sized
ListView) but, with only one column inthe ListView, the Form needs
to get /quite/ narrow (68 pixels, for example).

I've been experimenting with samples from various people that
change the Form's Region property, but these seem to have odd
effects on the borders (the right and bottom ones diappear without
trace) and the ClientSize (which seems to ramble off in search of
the "missing" borders) and, when I try to resize or move the Form,
it seems to be "trapped" within an area (Region?) of the Screen,
which I definitely didn't want.

I'm not after oval forms or 288 point transparent Red lettering
- I just want a tall, very thin form ... Any suggestions?

TIA,
Phill W.
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Try setting the MaximumSize and MinimumeSize property of the form to the
same value.

"Phill. W" <P.A.Ward@o-p-e-n-.-a-c-.-u-k> wrote in message
news:dj**********@yarrow.open.ac.uk...
How can I make a Form that looks and feels like a normal
Windows Form but that is *very* narrow? In some cases, this
needs ot be /far/ less than the apparent, 112 pixel, intrinsic limit
that VB 2003 seems to impose.

This form doesn't have a title bar, controlbox or any other buttons
(it's a popup form that will wrap neatly around an automatically-sized
ListView) but, with only one column inthe ListView, the Form needs
to get /quite/ narrow (68 pixels, for example).

I've been experimenting with samples from various people that
change the Form's Region property, but these seem to have odd
effects on the borders (the right and bottom ones diappear without
trace) and the ClientSize (which seems to ramble off in search of
the "missing" borders) and, when I try to resize or move the Form,
it seems to be "trapped" within an area (Region?) of the Screen,
which I definitely didn't want.

I'm not after oval forms or 288 point transparent Red lettering
- I just want a tall, very thin form ... Any suggestions?

TIA,
Phill W.

Nov 21 '05 #2

P: n/a
Rocky,

/That/ hit the spot!
And so *simple*, which makes a pleasant change ;-)

Many Thanks,
Phill W.

"Rocky" <no*****@nowhere.com> wrote in message
news:uC**************@tk2msftngp13.phx.gbl...
Try setting the MaximumSize and MinimumeSize property of the form to the
same value.

"Phill. W" <P.A.Ward@o-p-e-n-.-a-c-.-u-k> wrote in message
news:dj**********@yarrow.open.ac.uk...
How can I make a Form that looks and feels like a normal
Windows Form but that is *very* narrow? In some cases, this
needs ot be /far/ less than the apparent, 112 pixel, intrinsic limit
that VB 2003 seems to impose.

This form doesn't have a title bar, controlbox or any other buttons
(it's a popup form that will wrap neatly around an automatically-sized
ListView) but, with only one column inthe ListView, the Form needs
to get /quite/ narrow (68 pixels, for example).

I've been experimenting with samples from various people that
change the Form's Region property, but these seem to have odd
effects on the borders (the right and bottom ones diappear without
trace) and the ClientSize (which seems to ramble off in search of
the "missing" borders) and, when I try to resize or move the Form,
it seems to be "trapped" within an area (Region?) of the Screen,
which I definitely didn't want.

I'm not after oval forms or 288 point transparent Red lettering
- I just want a tall, very thin form ... Any suggestions?

TIA,
Phill W.


Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.