public void Form1_Load(object sender, PrintPageEventArgs e)
You're trying to add this method as event handler for
Load
, but that event requires the second argument to be of the type
EventArgs
, not
PrintPageEventArgs
.
PrintPageEventArgs
is related to the
PrintPageEventHandler
, which has to do with
PrintDocument[
^] - if printing is what you're trying to achieve, you should explore that class. If you just want to draw on the form itself, you should use the
Paint event[
^].