how to pass value to anothe form c# winform
form1 frm= new form1();
form1.getdata="some string to be sent to form1";
how to pass value to anothe form c# winform
form1 frm= new form1();
form1.getdata="some string to be sent to form1";
how to pass value to anothe form c# winform
// Form 1
// inside the button click event
using(Form2 form2 = new Form2())
{
if(form2.ShowDialog() == DialogResult.OK)
{
someControlOnForm1.Text = form2.TheValue;
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us