using System; using System.Windows.Forms; namespace Portable.NET.Test { public class Form1 : System.Windows.Forms.Form { private System.Windows.Forms.Button button1; public Form1() { this.button1 = new System.Windows.Forms.Button(); this.button1.Text = "button1"; this.button1.Click += new System.EventHandler(button1_Click); this.ClientSize = new System.Drawing.Size(100, 100); this.Controls.Add(button1); this.Text = "Form1"; } static void Main() { Application.Run(new Form1()); } private void button1_Click(object sender, System.EventArgs e) { MessageBox.Show("Hello World!"); } } }