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

Want to Create a differently-shaped GroupBox (or the illusion of such...)

P: n/a
As far as I know, Groupboxes only come in one shape, a rectangle. But
on one of my forms, it would be best if I could have a groupbox that's
shaped like this:

_______
| |
_________| |
| |
| |
|_______________|

So what should I do? Any suggestions on reshaping the Groupbox, or
melding two Groupboxes to create a convincing illusion?

TIA!
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
"Failure" <fa*****@failure.com> schrieb
As far as I know, Groupboxes only come in one shape, a rectangle.
But on one of my forms, it would be best if I could have a groupbox
that's shaped like this:

_______
| |
_________| |
| |
| |
|_______________|

So what should I do? Any suggestions on reshaping the Groupbox, or
melding two Groupboxes to create a convincing illusion?

I would not call it a box... Don't use proportional fonts.
--
Armin

Nov 20 '05 #2

P: n/a
Cor
Hi,
There is an example on MSDN
http://msdn.microsoft.com/library/de...lstudionet.asp
Cor
Nov 20 '05 #3

P: n/a
Hello,

"Failure" <fa*****@failure.com> schrieb:
As far as I know, Groupboxes only come in one shape, a rectangle. But
on one of my forms, it would be best if I could have a groupbox that's
shaped like this:

_______
| |
_________| |
| |
| |
|_______________|


Set the control's Region property to a custom shaped region (for example
created from a GraphicsPath) and draw the border yourself (have a look at
the class ControlPaint).

HTH,
Herfried K. Wagner
--
MVP VB Classic, VB .NET
http://www.mvps.org/dotnet
Nov 20 '05 #4

P: n/a
Thanks for all the suggestions, I'm sure I'll find a suitable way of
doing this now.

On Sat, 30 Aug 2003 13:29:01 +0200, "Herfried K. Wagner [MVP]"
<hi*******@m.activevb.de> wrote:
Hello,

"Failure" <fa*****@failure.com> schrieb:
As far as I know, Groupboxes only come in one shape, a rectangle. But
on one of my forms, it would be best if I could have a groupbox that's
shaped like this:

_______
| |
_________| |
| |
| |
|_______________|


Set the control's Region property to a custom shaped region (for example
created from a GraphicsPath) and draw the border yourself (have a look at
the class ControlPaint).

HTH,
Herfried K. Wagner


Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.