public SMTextBox(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base() { this.SuspendLayout(); prevHeight = -1; InitializeComponent(); MoveNext = new MoveNextControls(proxy); labels = new ArrayList(); flag = true; this.Width = (int)info.GetValue("Width", Type.GetType("System.Int32")); this.Height = (int)info.GetValue("Height", Type.GetType("System.Int32")); this.Left = (int)info.GetValue("Left", Type.GetType("System.Int32")); this.Top = (int)info.GetValue("Top", Type.GetType("System.Int32")); textBox1.Text = (string)info.GetValue("Text", Type.GetType("System.String")); textBox1.Font = (Font)info.GetValue("Font", typeof(Font)); this.ForeColor = (Color)info.GetValue("ForeColor", typeof(Color)); this.Name = (string)info.GetValue("Name", typeof(string)); this.TabIndex = (int)info.GetValue("TabIndex", typeof(int)); this.Words = (string[])info.GetValue("Word", typeof(string[])); for (int i = 0; i < Words.Length; i++) { Words[i] = (string)info.GetValue("Word" + i.ToString(), typeof(string)); } AddLabel(Words); this.ResumeLayout(true); prevHeight = this.Height; }
public SMTextBox(string[] words) { prevHeight = -1; InitializeComponent(); //this.SMTextBox_Resize(this,null); MoveNext = new MoveNextControls(proxy); Words = words; labels = new ArrayList(); flag = true; AddLabel(Words); prevHeight = this.Height; }
public SMTextBox() { prevHeight = -1; // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // TODO: Add any initialization after the InitializeComponent call //this.SMTextBox_Resize(this,null); prevWidth = this.Width; MoveNext = new MoveNextControls(proxy); labels = new ArrayList(); Words = new string[0]; /*for(int i=0; i<5; i++) * Words[i] = "word"+i.ToString();*/ flag = true; AddLabel(Words); prevHeight = this.Height; }