Question : how to pass value to anothe form c# winform
Answered by : worried-wallaby-e580h98ybxho
// Form 1
// inside the button click event
using(Form2 form2 = new Form2())
{ if(form2.ShowDialog() == DialogResult.OK) { someControlOnForm1.Text = form2.TheValue; }
}
Source : https://stackoverflow.com/questions/1559770/send-values-from-one-form-to-another-form | Last Update : Wed, 09 Feb 22
Question : how to pass value to anothe form c# winform
Answered by : worried-wallaby-e580h98ybxho
form1 frm= new form1();
form1.getdata="some string to be sent to form1";
Source : https://stackoverflow.com/questions/1559770/send-values-from-one-form-to-another-form | Last Update : Wed, 09 Feb 22