Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
ใบเสร็จลูกค้าBindingSource.AddNew()
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
ใบเสร็จลูกค้าBindingSource.EndEdit()
ใบเสร็จลูกค้าTableAdapter.Update(DatabasePRODataSet1.ใบเสร็จลูกค้า)
End Sub
Public Class Form5
Private Sub ใบเสร็จลูกค้าBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Me.Validate()
Me.ใบเสร็จลูกค้าBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.DatabasePRODataSet1)
End Sub
Private Sub Form5_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'DatabasePRODataSet1.ใบเสร็จลูกค้า' table. You can move, or remove it, as needed.
Me.ใบเสร็จลูกค้าTableAdapter.Fill(Me.DatabasePRODataSet1.ใบเสร็จลูกค้า)
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
ใบเสร็จลูกค้าBindingSource.AddNew()
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
ใบเสร็จลูกค้าBindingSource.EndEdit()
ใบเสร็จลูกค้าTableAdapter.Update(Me.DatabasePRODataSet1.ใบเสร็จลูกค้า)
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
ใบเสร็จลูกค้าBindingSource.RemoveCurrent()
ใบเสร็จลูกค้าBindingSource.EndEdit()
ใบเสร็จลูกค้าTableAdapter.Update(Me.DatabasePRODataSet1.ใบเสร็จลูกค้า)
End Sub
End Class
Public Class Form5
Private Sub ใบเสร็จลูกค้าBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Me.Validate()
Me.ใบเสร็จลูกค้าBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.DatabasePRODataSet1)
End Sub
Private Sub Form5_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'DatabasePRODataSet1.ใบเสร็จลูกค้า' table. You can move, or remove it, as needed.
Me.ใบเสร็จลูกค้าTableAdapter.Fill(Me.DatabasePRODataSet1.ใบเสร็จลูกค้า)
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
ใบเสร็จลูกค้าBindingSource.AddNew()
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Me.Validate()
Me.ใบเสร็จลูกค้าBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.DatabasePRODataSet1)
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
ใบเสร็จลูกค้าBindingSource.RemoveCurrent()
ใบเสร็จลูกค้าBindingSource.EndEdit()
ใบเสร็จลูกค้าTableAdapter.Update(Me.DatabasePRODataSet1.ใบเสร็จลูกค้า)
End Sub
End Class