import System;
import System.Windows.Forms;
import System.Drawing;

var f : MyForm = new MyForm();
f.ShowDialog();

class MyForm extends Form {
	function MyForm() {
		super();
		Size = new System.Drawing.Size(100, 80);
		Location = new Point(200, 50);
		StartPosition = FormStartPosition.Manual;
	}
	protected override function OnKeyPress(e : KeyPressEventArgs) {
		MessageBox.Show(e.KeyChar);
	}
}
