You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
798 B
52 lines
798 B
using System; |
|
using System.Collections.Generic; |
|
using System.ComponentModel; |
|
using System.Drawing; |
|
using System.Data; |
|
using System.Linq; |
|
using System.Text; |
|
using System.Windows.Forms; |
|
|
|
|
|
public partial class LineSeparator : UserControl |
|
{ |
|
|
|
|
|
|
|
|
|
public LineSeparator() |
|
{ |
|
this.Height = 2; |
|
|
|
this.Paint += new PaintEventHandler(LineSeparator_Paint); |
|
|
|
|
|
this.MaximumSize = new Size(2000, 2); |
|
|
|
|
|
this.MinimumSize = new Size(0, 2); |
|
|
|
//this.Width = 350; |
|
|
|
} |
|
|
|
|
|
private void LineSeparator_Paint(object sender, PaintEventArgs e) |
|
{ |
|
|
|
|
|
|
|
|
|
Graphics g = e.Graphics; |
|
|
|
g.DrawLine( |
|
|
|
Pens.DarkGray, new Point(0, 0), new Point(this.Width, 0)); |
|
|
|
g.DrawLine( |
|
|
|
Pens.White, new Point(0, 1), new Point(this.Width, 1)); |
|
|
|
} |
|
|
|
}
|
|
|