I need a Save button and a close button. Close should do the same thing as Save plus close the form.
I tried this:
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
‘Save Button
Try
InsertionRow1.EndEdit()
OleDbDataAdapter1.Update(MatterDataSet11)
MatterDataSet11.AcceptChanges()
‘set focus on adjacent row
GridControl1.DataRows.Item(1).Cells(0).EnterEdit()
Catch ex As Exception
MsgBox(ex, ToString)
End Try
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
Me.Button2_Click()
Me.Close()
End Sub
The compiler says “Argument net specified for parameter ‘e’ of button_Click2”
How can i call button 2 from button 4?
Imported from legacy forums. Posted by Clay Rankin (had 2339 views)