Hi,
>I am using Visual C# Express (.net 2.0) and I am wondering if there is
> a way to reset a form. I come from asp.net and I am used to binding
> the data in code during the page load event. Winforms offers
> databinding more like ms access, where you can bind the form directly
> to a dataset, but I prefer unbound forms.
To be more exact, one usually binds a DataSet, DataTable or DataView to
individual Controls, not to the Form itself.
> In asp.net, when a user deletes a record on a webform for instance, I
> simple
[quoted text clipped - 8 lines]
> add a new control to a form down the road I have to remember to add it
> to the clear method also.
I don't believe there is a way to reset all Controls.
I would choose between making a ClearFields method and clear all controls
individually or cycling though the Controls collection and clearing them. I
wouldn't close and re-open the Form.
HTH,
greetings