I have a Winforms Form and I spawn a Route Calculator in a DataGridView Control. After client inputs, it does the calculation and then updates a textbox on the same form after "Update" is pressed. How can I make it so that the value from this textbox in the spawned Form will transfer to an existing textbox on the spawned (child) form back to the parent and close the spawned form at after doing so.
The code below will spawn the child form:
DeliveryLocationCalculator form = new DeliveryLocationCalculator();
form.Show();
What should go in the button2_Click (Save) button of the child form to make it transfer the textbox value and also close the child form after clicking