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

F

Failure

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!
 
A

Armin Zingler

Failure said:
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.
 
H

Herfried K. Wagner [MVP]

Hello,

Failure said:
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
 
F

Failure

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

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