How do I draw lines on a button table? I am trying to make a tic-tac-toe game with different sizes and I am now onto the scoring part of the program. Right now, I have tried making lines on the program, but they appear on the Form behind the tablelayoutpanel. How would I bring the line in front of the panel and the buttons on the panel?
What I have tried:
So far, I have tried #include <graphics> in the program, and the code below to draw the line:
Graphics^ pg = CreateGraphics();
Pen^ red_pen = gcnew Pen(Color::Red);
pg->DrawLine(red_pen, 300,150, 60,60);
delete pg;
but I am trying to figure out how to bring the line out front