public static void Main() { Application app = new Application(); var win = new MyWindow { Background = null }; app.Run(win); }
static void Main() { MyWindow form = new MyWindow(); form.Text = "My First Window Form"; Button button = new Button(); button.Text = " Click Mi"; form.Controls.Add(button); Application.Run(form); }