namespace project { public partial class ucSample : UserControl { private double transferVolume; public double TransferVolume { get { return transferVolume; } set { transferVolume = value; } } public ucSample() { InitializeComponent(); } private void btnSave_Click(object sender, EventArgs e) { TransferVolume = double.Parse(txtSamplevolume.Text); } } }
namespace project { public partial class ucSettings : UserControl { ucSample samplevolume = new ucSample(); public ucSettings() { InitializeComponent(); } private void txtvolumeMin_TextChanged(object sender, EventArgs e) { txtvolumeMin.Text = samplevolume.TransferVolume.ToString(); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)