Modal Dialog Memory Leak

If you call your form like this:formMyForm formModal = new formMyForm();formModal.ShowDialog(): Make sure you properly dispose of it like this:formModal.Dispose(); Bug Submitted By: David McCarter

Advertisements

Strange ListBox Behavior when Bound To a DataTable

When I was putting data from a DataTable as shown in the code below:DataView locationsView = new DataView(MyDataSet.Tables["locations"]);locationsView.Sort = "name ASC";lstLocations.ValueMember = "key";lstLocations.DisplayMember = "name";lstLocations.DataSource = locationsView; I got a very strange result as seen below: Once I set the Sorted property to False, it worked fine. Go figure. Bug Submitted By: David McCarter