Private Sub TableNameBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TableNameBindingNavigatorSaveItem.Click Me.Validate() Me.TableNameBindingSource.EndEdit() Me.TableNameTableAdapter.Update(Me.DataSetName.TableName) End SubI needed to write code to emulate the ToolStrip's behaviour when clicking on the Add symbol, and came up with:
Dim DefaultDate1 As Date DefaultDate1 = Now Me.TableNameTableAdapter.Insert("", "", "", "", "", DefaultDate1, "", "") Me.TableNameBindingSource.AddNew()Is that correct? If not, how can I see the code used by each of the items in the ToolStrip container? I've tried the Edit Items option, but I couldn't find it there.