Adding Events To WinForms?

前端 未结 5 1983
臣服心动
臣服心动 2020-12-11 19:58

I have a TextBox on a WinForm and I want to execute some code every time someone presses a key inside of that TextBox. I\'m looking at the events properties me

5条回答
  •  渐次进展
    2020-12-11 20:39

    I assume you are in Visual Studio. One way would be to double click on the empty textbox on the right of the KeyDown event: VS will generate the code for you.

提交回复
热议问题