using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; namespace m { /// /// Summary description for EditRichTextForm. /// public class EditCommentsForm : System.Windows.Forms.Form { private System.Windows.Forms.Button buttonOk; private System.Windows.Forms.Button buttonCancel; public System.Windows.Forms.TextBox textBox1; /// /// Required designer variable. /// private System.ComponentModel.Container components = null; public EditCommentsForm(string strCurrent) { // // Required for Windows Form Designer support // InitializeComponent(); textBox1.Text = strCurrent; textBox1.Select(0, 0); } /// /// Clean up any resources being used. /// protected override void Dispose( bool disposing ) { if( disposing ) { if(components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region Windows Form Designer generated code /// /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void InitializeComponent() { this.buttonOk = new System.Windows.Forms.Button(); this.buttonCancel = new System.Windows.Forms.Button(); this.textBox1 = new System.Windows.Forms.TextBox(); this.SuspendLayout(); // // buttonOk // this.buttonOk.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left); this.buttonOk.BackColor = System.Drawing.SystemColors.Control; this.buttonOk.DialogResult = System.Windows.Forms.DialogResult.OK; this.buttonOk.Location = new System.Drawing.Point(108, 296); this.buttonOk.Name = "buttonOk"; this.buttonOk.TabIndex = 1; this.buttonOk.Text = "Ok"; // // buttonCancel // this.buttonCancel.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left); this.buttonCancel.BackColor = System.Drawing.SystemColors.Control; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.Location = new System.Drawing.Point(236, 296); this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.TabIndex = 2; this.buttonCancel.Text = "Cancel"; // // textBox1 // this.textBox1.AcceptsReturn = true; this.textBox1.AcceptsTab = true; this.textBox1.Anchor = (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right); this.textBox1.BackColor = System.Drawing.SystemColors.Info; this.textBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.textBox1.Multiline = true; this.textBox1.Name = "textBox1"; this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; this.textBox1.Size = new System.Drawing.Size(418, 288); this.textBox1.TabIndex = 0; this.textBox1.Text = ""; // // EditCommentsForm // this.AcceptButton = this.buttonOk; this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.BackColor = System.Drawing.SystemColors.Info; this.CancelButton = this.buttonCancel; this.ClientSize = new System.Drawing.Size(418, 326); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.textBox1, this.buttonOk, this.buttonCancel}); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "EditCommentsForm"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Comments"; this.ResumeLayout(false); } #endregion } }