I
I
Ilya1992018-10-15 17:27:57
WPF
Ilya199, 2018-10-15 17:27:57

How to call a method passing arguments so that vs doesn't swear?

5bc4a30172c41758810092.png
the text should just change to something else when the user hits enter and the keydown method is called again,
what vs says when hovering over KeyEventArgs: "KeyEventArgs is a type that is invalid in this context"

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Eremin, 2018-10-15
@Ilya199

what is it anyway?
looks like you are trying to declare a KeyDown method. out, even the types of the parameters were specified

B
BJIoM, 2018-10-17
@BJIoM

You need to remove the argument types from the call. It will look like this: KeyDown(sender, e);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question