Umm...
The installation seems to have succeeded.
There is still a problem.
Nothing is displayed even if I can compile it in the shown example.
The template which I use is the following cords which are near to 'HowTo/380-WinForms.cobra'.
use System.Windows.Forms
use System.Drawing
class MyForm
inherits Form
def init
.text = 'Click'
btn = Button()
btn.parent = this
listen btn.click, ref .onClick
def onClick(sender as Object, args as EventArgs)
MessageBox.show('You clicked Button', 'Click')
class Program
def main is shared
Application.run(MyForm())
When a name of event handler is 'onClick' then, I get an error.
error: Could not find an overload for "onClick" with zero arguments.
When it is another name, I do not seem to have any problem. (e.g. btn_onClick)