• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 163
  • Last Modified:

[vc++.net] question about the shape of group

Hello,

I'm using a vc++ window forms. I have a very silly question about Group. In my application window, I have used Group to group the buttons. But,  I need to make the shape of the group not to be a square.

For example, I want to make the shape of my group looking like this..

-- Buttons-------------------
|                                        |
|                            ______|
|                            |
|______________|

I hope I made my question clear...

Thanks-.
0
shinymoon
Asked:
shinymoon
1 Solution
 
AndyAinscowFreelance programmer / ConsultantCommented:
You would need to draw each line individually.
In the OnPaint of your form

Graphics* pGR = paintEvents->Graphics;
Pen* pen = new Pen( set colour you want here )
pGR->DrawLine(pen, 10, 10, 50, 10);
pGR->DrawLine(pen, 50, 10, 50, 50)
....




look at Graphics.DrawLine method in help
0
 
shinymoonAuthor Commented:
Thanks for your help :)
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now