Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If Button1.Text = "Add" Then
MsgBox("Record Inserted")
Button1.Text = "Update"
ElseIf Button1.Text = "Update" Then
MsgBox("Record Modified")
Button1.Text = "Delete"
Else
MsgBox("Record Removed")
Button1.Text = "Add"
End If
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Close()
End Sub
End Class