Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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;
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pass #anothe #form #winform
ADD COMMENT
Topic
Name
1+6 =