Professional Documents
Culture Documents
Listing Program
Listing Program
Imports System.Data.OleDb
End Sub
Tombol First
cm.CancelCurrentEdit()
cm.Position = 0
posisi()
End sub
Tombol Back
cm.CancelCurrentEdit()
cm.Position -= 1
posisi()
End sub
Tombol Next
cm.CancelCurrentEdit()
cm.Position += 1
posisi()
End Sub
Tombol Last
cm.CancelCurrentEdit()
cm.Position = cm.Count()
posisi()
End Sub
Tombol Add
cm.EndCurrentEdit()
cm.AddNew()
posisi()
TextBox1.Focus()
Tombol Save
Try
cm.EndCurrentEdit()
da.Update(dt)
posisi()
Catch ex As Exception
MessageBox.Show("Jangan di kosongkan !", "Pesan", MessageBoxButtons.OK, MessageBoxIcon.Information)
cm.RemoveAt(cm.Position)
posisi()
End Try
End Sub
Tombol Cancel
cm.CancelCurrentEdit()
Tombol Delete
cm.RemoveAt(cm.Position)
da.Update(dt)
posisi()
Tombol Keluar
Me.Close()