Prakash Mondal

Prakash Mondal

  • NA
  • 288
  • 208.3k

Draw a line on front of textBox or any other controls

Mar 20 2022 2:52 AM

I use below this code and draw a line. but in this position a textBox is there, so this line is draw in back of textBox. I want draw this line front of textBox. Please help

Pen p = new Pen(Color.Red,2);

Graphics gr = CreateGraphics();

gr.DrawLine(p, 10, 10, 100, 100);