namespace pop { using System; using System.Collections; using System.ComponentModel; using System.Drawing; using System.Data; using System.Windows.Forms; public class NameInputDialog : System.Windows.Forms.Form { private System.ComponentModel.Container components; private System.Windows.Forms.TextBox iNameTextBox; private System.Windows.Forms.Label iNameLabel; private System.Windows.Forms.Button iOKButton; public NameInputDialog() { InitializeComponent(); } public override void Dispose() { base.Dispose(); components.Dispose(); } private void InitializeComponent() { this.components = new System.ComponentModel.Container (); this.iNameLabel = new System.Windows.Forms.Label (); this.iOKButton = new System.Windows.Forms.Button (); this.iNameTextBox = new System.Windows.Forms.TextBox (); //@this.TrayHeight = 0; //@this.TrayLargeIcon = false; //@this.TrayAutoArrange = true; iNameLabel.Location = new System.Drawing.Point (32, 40); iNameLabel.Text = "Name"; iNameLabel.Size = new System.Drawing.Size (48, 23); iNameLabel.TabIndex = 2; iNameLabel.TextAlign = System.Drawing.ContentAlignment.MiddleRight; iOKButton.Location = new System.Drawing.Point (96, 80); iOKButton.DialogResult = System.Windows.Forms.DialogResult.OK; iOKButton.Size = new System.Drawing.Size (75, 23); iOKButton.TabIndex = 1; iOKButton.Text = "OK"; iOKButton.Click += new System.EventHandler (this.iOKButton_Click); iNameTextBox.Location = new System.Drawing.Point (96, 40); iNameTextBox.TabIndex = 3; iNameTextBox.Size = new System.Drawing.Size (100, 20); this.AutoScaleBaseSize = new System.Drawing.Size (5, 13); this.ClientSize = new System.Drawing.Size (240, 133); this.Controls.Add (this.iNameTextBox); this.Controls.Add (this.iNameLabel); this.Controls.Add (this.iOKButton); } protected void iOKButton_Click (object sender, System.EventArgs e) { } public new String Name { get { return iNameTextBox.Text; } } } }