Answers for "how to pass value to anothe form c# winform"

C#
0

how to pass value to anothe form c# winform

form1 frm= new form1();
form1.getdata="some string to be sent to form1";
Posted by: Guest on February-02-2022
0

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;
    }
}
Posted by: Guest on February-02-2022

Code answers related to "how to pass value to anothe form c# winform"

C# Answers by Framework

Browse Popular Code Answers by Language