When a user clicks the X button to close the form or clicks an exit button I have on a menu, the dispose event handler is fired.
At this stage, I would like to be able to loop through the controls in my tablelayoutpanel and perform some DB updates. However, it fails saying that it can't find the field.
Is this because controls cannot be accessed after the form has been disposed? I can get the rowcount of the tablelayoutpanel but can't seem to access the controls within it.
How do I go about this?
Mighty
At this stage, I would like to be able to loop through the controls in my tablelayoutpanel and perform some DB updates. However, it fails saying that it can't find the field.
Is this because controls cannot be accessed after the form has been disposed? I can get the rowcount of the tablelayoutpanel but can't seem to access the controls within it.
How do I go about this?
Mighty