In the Load function of a form, I create a populate a dataset with data using the following command:
I was just wondering what best practice is when closing the form, Should I dispose of the dataset, dataadapter, etc or will they be disposed automatically when the form is closed.
Mighty
Code:
Me.Lot_DataTableAdapter.Fill(Me.DESDataSet.Lot_Data, SelectLotForm.lotnumber)
I was just wondering what best practice is when closing the form, Should I dispose of the dataset, dataadapter, etc or will they be disposed automatically when the form is closed.
Mighty