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.

Cody Gray - on strike
  • 239,200
  • 50
  • 490
  • 574
Dev
  • 987
  • 2
  • 14
  • 32
  • 2
    possible duplicate of [What is this control? Group Box or Not!](http://stackoverflow.com/questions/4897584/what-is-this-control-group-box-or-not) It's a `STATIC` control; my answer gives full sample code for creating the exact same control in C#. – Cody Gray - on strike Mar 15 '11 at 07:59

2 Answers2

5

This should get you very close:

label1.AutoSize = false;
label1.Height = 2;
label1.BorderStyle = BorderStyle.Fixed3D;
pirho
  • 2,972
  • 4
  • 23
  • 17
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.

nan
  • 19,595
  • 7
  • 48
  • 80