private void button2_Click(object sender, EventArgs e) { using (partform partfinder = new partform()) { var result = partfinder.ShowDialog(); if (result == DialogResult.OK) { textBox1.Text = partfinder.partid.ToString(); } } }
private void button2_Click(object sender, EventArgs e) { using (partform partfinder = new partform()) { var result = partfinder.ShowDialog(); if (result == DialogResult.OK) { ux_PartID.Text = Convert.ToString(partfinder.partid); uxPartName.Text = partfinder.partname; uxQty.Value = partfinder.qty; uxBaseCost.Value = partfinder.basecost; } } }