no overload for matches delegate 'system.eventhandler'

后端 未结 4 1253
天涯浪人
天涯浪人 2020-12-01 20:38

As I\'m pretty new to C#, I struggle with the following piece of code. When I click to button \'knop\', the method \'klik\' has to be executed. The method has to draw the Bi

4条回答
  •  伪装坚强ぢ
    2020-12-01 21:10

    You need to change public void klik(PaintEventArgs pea, EventArgs e) to public void klik(object sender, System.EventArgs e) because there is no Click event handler with parameters PaintEventArgs pea, EventArgs e.

提交回复
热议问题