草庐IT

c# - 匹配委托(delegate) 'system.eventhandler' 没有重载

由于我是C#的新手,所以我对以下代码感到困惑。当我单击“knop”按钮时,必须执行“klik”方法。该方法必须在窗体上绘制由“DrawMandel”生成的位图“b”。但我经常收到错误消息“匹配委托(delegate)‘system.eventhandler’没有重载”。usingSystem;usingSystem.Windows.Forms;usingSystem.Drawing;classMandelbrot:Form{publicBitmapb;publicMandelbrot(){Buttonknop;knop=newButton();knop.Location=newPoin

c# - 匹配委托(delegate) 'system.eventhandler' 没有重载

由于我是C#的新手,所以我对以下代码感到困惑。当我单击“knop”按钮时,必须执行“klik”方法。该方法必须在窗体上绘制由“DrawMandel”生成的位图“b”。但我经常收到错误消息“匹配委托(delegate)‘system.eventhandler’没有重载”。usingSystem;usingSystem.Windows.Forms;usingSystem.Drawing;classMandelbrot:Form{publicBitmapb;publicMandelbrot(){Buttonknop;knop=newButton();knop.Location=newPoin