public string ID2 { set { textBox1.Text = value; }
private void button1_Click(object sender, EventArgs e) { Sample samp = new Sample(); samp.ID = ID; Controls.Add(samp); samp.BringToFront(); }
public string ID2 { get { return textBox1.Text; } }
private void button1_Click(object sender, EventArgs e) { var textBoxContent = this.textBox1.Text; // ParentForm parent = (ParentForm)this.Owner; var parent = this.Parent as Form1; //var parent=this.Parent as parent.ID2 = ID2; this.Hide(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)