The code below draws a line around the listview BUT does not incorporate the Headers.
How do I get it to draw a line around the entire listview including the headers.
private void button1_Click(object sender,System.EventArgs e)
{
Graphics g = ListView1.CreateGraphics();
Pen p = new Pen(Color.Black,.5F);
Pen eraser = new Pen(Color.Red);
g.DrawRectangle(eraser, 0, 0, ListView1.Width-1, ListView1.Height-1);
}
How do I get it to draw a line around the entire listview including the headers.
private void button1_Click(object sender,System.EventArgs e)
{
Graphics g = ListView1.CreateGraphics();
Pen p = new Pen(Color.Black,.5F);
Pen eraser = new Pen(Color.Red);
g.DrawRectangle(eraser, 0, 0, ListView1.Width-1, ListView1.Height-1);
}