Discover SharpDevelop also supports Ruby, especially if you can directly use the WinForm control directly in the
require"mscorlib"require"System.Windows.Forms, version=2.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089"require"System.Drawing, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a"classMainForm < System::windows::forms::formdefInitialize () Self. InitializeComponent ()EnddefInitializeComponent () @button1 = System::windows::forms::button.new () Self. SuspendLayout ()# # button1# @button1. Location = System::D rawing::P oint.new @button1. Name = "button1"@button1. Size = System::D rawing::size.new (at @button1). TabIndex = 0@button1. Text = "button1"@button1. Usevisualstylebackcolor =true@button1. Click {|sender, e| Self. Button1Click (sender, E)}# # MainForm# Self. ClientSize = System::D rawing::size.new (292, 266) Self. Controls.Add (@button1) Self. Name = "MainForm" Self. Text = "mm" Self. ResumeLayout (false)EnddefButton1Click (sender, E) system::windows::forms::messagebox.show ("Hello World")EndEnd
ruby-calling Windows Forms