using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; public class SimpleForm : System.Windows.Forms.Form { private System.ComponentModel.Container components = null; private System.Windows.Forms.Button button1; private System.Windows.Forms.TextBox textBox1; public SimpleForm() { InitializeComponent(); } protected override void Dispose( bool disposing ) { if( disposing ) { if (components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region Windows Form Designer generated code private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.Size = new System.Drawing.Size(300,300); this.Text = Form1; this.button1 = new System.Windows.Forms.Button(); this.textBox1 = new System.Windows.Forms.TextBox(); this.SuspendLayout(); // // button1 // this.button1.Location = new System.Drawing.Point(8, 16); this.button1.Name = button1; this.button1.Size = new System.Drawing.Size(80, 24); this.button1.TabIndex = 0; this.button1.Text = button1; // // textBox1 // this.textBox1.Location = new System.Drawing.Point(112, 16); this.textBox1.Name = textBox1; this.textBox1.Size = new System.Drawing.Size(160, 20); this.textBox1.TabIndex = 1; this.textBox1.Text = textBox1; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(292, 273); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.textBox1, this.button1}); this.Name = Form1; this.Text = Form1; this.ResumeLayout(false); } #endregion [STAThread] static void Main() { Application.Run(new SimpleForm()); } } //csharp/1139