TextBox
Text
TextBox t = new TextBox(); t.Text = dr["temp1"].ToString(); t.BackColor = Color.CadetBlue; t.WordWrap = true; t.Multiline = true; t.ReadOnly = true; t.HideSelection = true; t.Size = new Size(610, 50); t.Name = "temptxt"; t.Click += new System.EventHandler(t_Click); pan.Controls.Add(t);
CheckBox
TextBox t = sender as TextBox; if (t != null) { Console.WriteLIne(t.Text); }
Click
void t_Click(object sender, EventArgs e) { TextBox t1 = (TextBox)sender; string str = t1.Text; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)