4
Answers

Drawing Lines on a panel, not the form itself

Guan

Guan

14y
3.5k
1
Hello CSharpCorner

I'm working on a paintapplication working with GDI+ in C# and i have a little problem.

In my first step i want to draw a simple line in A PANEL.
There are many tutorials that explain how it works on the form itself but it's quite important for my project it's in a panel.

Even when i put the code to draw on the form itself it gives a error.

With what code can i simply draw this line on a panel?

greetz
Answers (4)