But it seems I completely forgot how to do this.

I know how to do a diagonal line.

grph.DrawLine(pen2, 0, 0, 100, 100);

I really don't understand the concepts of the x and y coordinates, so can someone please show me how to draw a straight line. Thanks.