I want to draw lines on winforms and add hover event to each one of them. this is the code I have so far
private void Form2_Paint(object sender, PaintEventArgs e)
{
Graphics g;
g = e.Graphics;
Pen myPen = new Pen(Color.Black);
myPen.Width = 3;
g.DrawLine(myPen, 30, 30, 45, 65);
g.DrawLine(myPen, 1, 1, 45, 65);
}