2

Please refer to the following image:

I wanted to group the controls like that. Beside Email, Calendar, and Tasks, there's a line drawn. I searched, but I don't think I got anywhere close to finding the solution. They all point to drawing using GDI, whatever that is. Even fiddled with the group box with no use.

1

2 Answers 2

5

This should get you very close:

label1.AutoSize = false;
label1.Height = 2;
label1.BorderStyle = BorderStyle.Fixed3D;
1
  • Thanks. Had to tinker with the position though.
    – Dev
    Mar 15, 2011 at 8:23
3

That separator can be achieved by creating a Label that has a height of 2 pixels and has the BorderStyle property set to Fixed3D.

2
  • Awww. Snap, you were quick :)
    – pirho
    Mar 15, 2011 at 8:01
  • 1
    Alse the AutoSize property should be set to false, @pirho 's answer should be upvoted as it contains the full description.
    – nan
    Mar 15, 2011 at 8:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.