I am simply trying to make a colordialog appear, using the following code as a test out/practise assignment.
{
Point puntA = new Point(10, 300);
Point puntB = new Point(90, 200);
Pen tekenpotlood = new Pen(colorDialog1.Color , 4);
Graphics papier = pictureBox1.CreateGraphics();
papier.DrawLine(tekenpotlood, puntA, puntB);
}
I have dragged a colordialog onto the form, I have also added the code menntioned in the textbook (with or without erasing colordialog)
any help is appreaciated with this problem..
Thanks a lot for the answer, Classes is the next chapter of the course, but i got it to work, with some changes.
here is the code now functioning:
}