using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; namespace AyaNova { /// /// Summary description for CopyableMessageBox. /// public class CopyableMessageBox : System.Windows.Forms.Form { private System.Windows.Forms.TextBox edOut; /// /// Required designer variable. /// private System.ComponentModel.Container components = null; private string mDisplay=""; public CopyableMessageBox(string Display) { // // Required for Windows Form Designer support // InitializeComponent(); mDisplay=Display; // // // } /// /// 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() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CopyableMessageBox)); this.edOut = new System.Windows.Forms.TextBox(); this.SuspendLayout(); // // edOut // this.edOut.Dock = System.Windows.Forms.DockStyle.Fill; this.edOut.Location = new System.Drawing.Point(0, 0); this.edOut.Multiline = true; this.edOut.Name = "edOut"; this.edOut.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; this.edOut.Size = new System.Drawing.Size(488, 357); this.edOut.TabIndex = 0; // // CopyableMessageBox // this.AutoScaleBaseSize = new System.Drawing.Size(6, 15); this.ClientSize = new System.Drawing.Size(488, 357); this.Controls.Add(this.edOut); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "CopyableMessageBox"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "AyaNova message"; this.TopMost = true; this.Load += new System.EventHandler(this.CopyableMessageBox_Load); this.ResumeLayout(false); this.PerformLayout(); } #endregion private void CopyableMessageBox_Load(object sender, System.EventArgs e) { edOut.Text=mDisplay; } } }