FORM DATA TEAM
Diskripsi :
- Label
- Textbox
- Datasource
FORM DATA BOOKING
Coding Program
Public Class Form4
Private Sub BookingBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BookingBindingNavigatorSaveItem.Click
Me.Validate()
Me.BookingBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.SewafutsalDataSet)
End Sub
Private Sub Form4_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'SewafutsalDataSet.Booking' table. You can move, or remove it, as needed.
Me.BookingTableAdapter.Fill(Me.SewafutsalDataSet.Booking)
End Sub
Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
e.Graphics.DrawString(Label1.Text, Label1.Font, Brushes.Black, 100, 100)
e.Graphics.PageUnit = GraphicsUnit.Inch
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
PrintDialog1.Document = PrintDocument1 'PrintDialog associate with PrintDocument.
If PrintDialog1.ShowDialog() = DialogResult.OK Then
PrintDocument1.Print()
End If
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
PrintPreviewDialog1.Document = PrintDocument1 'PrintPreviewDialog associate with PrintDocument.
PrintPreviewDialog1.ShowDialog() 'open the print preview
End Sub
Private Sub BookingDataGridView_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles BookingDataGridView.CellContentClick
End Sub
Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
Form5.Show()
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
If StatusComboBox.SelectedItem = "MEMBER" Then
Harga_SewaTextBox.Text = "Rp 80.000"
ElseIf StatusComboBox.SelectedItem = "NO MEMBER" Then
Harga_SewaTextBox.Text = "Rp 100.000 "
End If
End Sub
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
End Sub
End Class
Private Sub BookingBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BookingBindingNavigatorSaveItem.Click
Me.Validate()
Me.BookingBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.SewafutsalDataSet)
End Sub
Private Sub Form4_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'SewafutsalDataSet.Booking' table. You can move, or remove it, as needed.
Me.BookingTableAdapter.Fill(Me.SewafutsalDataSet.Booking)
End Sub
Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
e.Graphics.DrawString(Label1.Text, Label1.Font, Brushes.Black, 100, 100)
e.Graphics.PageUnit = GraphicsUnit.Inch
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
PrintDialog1.Document = PrintDocument1 'PrintDialog associate with PrintDocument.
If PrintDialog1.ShowDialog() = DialogResult.OK Then
PrintDocument1.Print()
End If
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
PrintPreviewDialog1.Document = PrintDocument1 'PrintPreviewDialog associate with PrintDocument.
PrintPreviewDialog1.ShowDialog() 'open the print preview
End Sub
Private Sub BookingDataGridView_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles BookingDataGridView.CellContentClick
End Sub
Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
Form5.Show()
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
If StatusComboBox.SelectedItem = "MEMBER" Then
Harga_SewaTextBox.Text = "Rp 80.000"
ElseIf StatusComboBox.SelectedItem = "NO MEMBER" Then
Harga_SewaTextBox.Text = "Rp 100.000 "
End If
End Sub
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
End Sub
End Class
Terima kasih atas kunjungan saudara. Cara membuat link di komentar sangat mudah sekali, silahkan kunjungi postingan Mafia Online yang berjudul "Sangat Bermanfaat"
BalasHapus