My problem is mentioned in this question, but the answers are all focused on the other parts of the question.
I have this event handler in a form:
Private Sub myDataTable_ColumnChanging(ByVal sender As System.Object, ByVal e As DataColumnChangeEventArgs) Handles myDataSet.myDataTable.ColumnChanged
If (e.ProposedValue = "") Then
e.ProposedValue = DBNull.Value
End If
End Sub
When I open the designer for this form, do any modifications, and save, the Handles
suffix is removed from the code. I have to re-add it every time in order to have the desired effect.
I should mention that IntelliSense doesn't suggest any of the DataTables in the DataSet when I write myDataSet.
, but after writing the correct name of the DataTable, all the available events show up, and the code is working perfectly.