[] question about the shape of group

Posted on 2007-07-20
Last Modified: 2013-11-26

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...

Question by:shinymoon
    LVL 43

    Accepted Solution

    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

    Author Comment

    Thanks for your help :)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (…
    Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now