How to save/discard values of controls of a form, upon pressing Ok/Cancel button?
<p>Please guide me as how to save/discard values of controls of a form, upon pressing Ok/Cancel button accordingly in Visual Studio C#?</p>

<p>Controls in a form include TablelayoutPanel(TextBoxes), NumericUpDown.</p>

<p>Need your expert guidance</p>

<p>Regards
Asad</p>
