A
A
Anton_repr2019-04-02 18:24:18
C++ / C#
Anton_repr, 2019-04-02 18:24:18

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 inserted5ca37ed05a30a122913293.png5ca37ee01b1b7433819681.png5ca37ee467404766843510.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
Oleg Pogrebnyak, 2019-04-02
@Anton_repr

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;
}

G
GavriKos, 2019-04-02
@GavriKos

Pass the same sender and e.

K
kpa6uu, 2017-01-19
@ddimonn8080

Try using JSON.parse instead of jQuery.parseJson, and also set the second argument to the json_encode function (to get json_encode($errorValidation, true))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question