Answer the question
In order to leave comments, you need to log in
What arguments should be written?
I'm trying to call a function, but there are not enough arguments. I don't understand what needs to be inserted
Answer the question
In order to leave comments, you need to log in
The PaintEventArgs object can be obtained from a subscription to the Paint event.
e.Graphics can be taken out of functions, then you don't have to pass anything.
Variable in class:
In constructor:
Function:
void Draw(object sender, PaintEventArgs e)
{
g = e.Graphics;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question