# .require. dotnet @args -c -native-compiler:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" #@args -c -native-compiler:"C:\Windows\Microsoft.NET\Framework\v3.5\csc.exe" #@args -c -native-compiler:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe" use System.Windows.Forms class MyForm inherits Form cue init base.init .text = 'Clicking' b = Button(text="ok", parent=this, tag="TEST") listen b.click, ref .handleClick def handleClick(sender, args as EventArgs) MessageBox.show(this, 'You clicked me! [sender.text]/[sender.tag]', 'Click') class Program def main Application.run(MyForm())