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

  • Thread starter Thread starter Failure
  • Start date Start date
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!
 
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.
 
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
 
Back
Top