Private Sub MenuUtamaToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Me.ShowDialog() End Sub

Size: px
Start display at page:

Download "Private Sub MenuUtamaToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Me.ShowDialog() End Sub"

Transcription

1 LISTING PROGRAM Menu_Utama.vb Public Class FrmUtama Private Sub DataMovieToolStripMenuItem_Click(ByVal sender As DataMovieToolStripMenuItem.Click FrmMovie.ShowDialog() Private Sub DataPeminjamToolStripMenuItem_Click(ByVal sender As DataPeminjamToolStripMenuItem.Click FrmPeminjam.ShowDialog() Private Sub PeminjamanToolStripMenuItem_Click(ByVal sender As PeminjamanToolStripMenuItem.Click FrmPeminjaman.ShowDialog() Private Sub PengembalianToolStripMenuItem_Click(ByVal sender As PengembalianToolStripMenuItem.Click FrmPengembalian.ShowDialog() Private Sub MenuUtamaToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Me.ShowDialog() Private Sub RakToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RakToolStripMenuItem.Click

2 FrmRak.ShowDialog() Private Sub KategoriToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles KategoriToolStripMenuItem.Click FrmKategori.ShowDialog() Private Sub LaporanPeminjamanToolStripMenuItem_Click(ByVal sender As LaporanPeminjamanToolStripMenuItem.Click FrmLaporanPeminjaman.ShowDialog() Private Sub LaporanPengembalianToolStripMenuItem_Click(ByVal sender As LaporanPengembalianToolStripMenuItem.Click FrmLaporanPengembalian.ShowDialog() Private Sub ExitToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click FrmPencarian.ShowDialog() Private Sub ExitToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem1.Click Private Sub FrmUtama_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Class Data_Movie.vb

3 Imports System.Data Imports System.Data.OleDb Public Class FrmMovie Sub Data_Record() 'memanggil koneksi database 'mengambil data dari tabel buku Tabel = New Data.OleDb.OleDbDataAdapter("select * from TblMovie", Database) 'inisialisasi DataSet Data = New DataSet 'memasukkan data tabel ke DataSet Tabel.Fill(Data) Record.DataSource = Data Record.DataMember = Data.Tables(0).ToString() DGMovie.DataSource = Record DGMovie.Columns(1).Width = 300 DGMovie.Columns(5).Visible = False Sub Atur() BtnSimpan.Enabled = True BtnUbah.Enabled = True BtnHapus.Enabled = True BtnBatal.Enabled = False KdMovieTxt.Text = "" JdMovieTxt.Text = "" KategoriCmb.Text = "" RakCmb.Text = "" StockTxt.Text = "" FotoPic.ImageLocation = "" KdMovieTxt.Enabled = True KdMovieTxt.Focus() Call Kode_Movie() Call Data_Record()

4 Sub Data_Kategori() Tabel = New Data.OleDb.OleDbDataAdapter("select * from TblKategori", Database) Data = New DataSet Tabel.Fill(Data) Record.DataSource = Data Record.DataMember = Data.Tables(0).ToString() Dim a As DataRow KategoriCmb.Items.Clear() For Each a In Data.Tables(0).Rows KategoriCmb.Items.Add(a.Item(0)) Next a Sub Data_Rak() Tabel = New Data.OleDb.OleDbDataAdapter("select * from TblRak", Database) Data = New DataSet Tabel.Fill(Data) Record.DataSource = Data Record.DataMember = Data.Tables(0).ToString() Dim a As DataRow RakCmb.Items.Clear() For Each a In Data.Tables(0).Rows RakCmb.Items.Add(a.Item(0)) Next a Sub Kode_Movie()

5 Tabel = New Data.OleDb.OleDbDataAdapter("select * from TblMovie order by No asc", Database) Data = New DataSet Tabel.Fill(Data) Record.DataSource = Data Record.DataMember = Data.Tables(0).ToString() Dim A As DataRow Dim B As Integer = 1 KdMovieTxt.Text = "" For Each A In Data.Tables(0).Rows KdMovieTxt.Text = A.Item(0) + 1 B = B + 1 Next A Select Case B Case Is = 0 KdMovieTxt.Text = "001" Case Is > 0 KdMovieTxt.Text = "00" & B.ToString & "" End Select Private Sub RakToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RakToolStripMenuItem.Click FrmRak.ShowDialog() Private Sub KategoriToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles KategoriToolStripMenuItem.Click FrmKategori.ShowDialog() Private Sub DataMovieToolStripMenuItem_Click(ByVal sender As DataMovieToolStripMenuItem.Click

6 Me.ShowDialog() Private Sub DataPeminjamToolStripMenuItem_Click(ByVal sender As DataPeminjamToolStripMenuItem.Click FrmPeminjam.ShowDialog() Private Sub DataPengembalianMovieToolStripMenuItem_Click(ByVal sender As DataPeminjamanMovieToolStripMenuItem.Click FrmPeminjaman.ShowDialog() Private Sub PengembalianToolStripMenuItem_Click(ByVal sender As PengembalianToolStripMenuItem.Click FrmPengembalian.ShowDialog() Private Sub FrmMovie_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Call Data_Kategori() Call Data_Rak() Private Sub BtnSimpan_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnSimpan.Click DML.Connection = Database DML.CommandType = CommandType.Text DML.CommandText = "insert into TblMovie values('" & KdMovieTxt.Text & "','" & JdMovieTxt.Text & "','" _ & KategoriCmb.Text & "','" & RakCmb.Text & "','" & StockTxt.Text & "','" & FotoPic.Text & "')" DML.ExecuteNonQuery()

7 MsgBox("Data telah disimpan") Private Sub BtnUbah_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnUbah.Click DML.Connection = Database DML.CommandType = CommandType.Text DML.CommandText = "update TblMovie set Judul_Movie='" & JdMovieTxt.Text & _ "', Kategori='" & KategoriCmb.Text & "', Rak='" & RakCmb.Text & _ "', Stock='" & StockTxt.Text & "', Foto='" & FotoPic.Text & _ "' where Kode_Movie='" & KdMovieTxt.Text & "'" DML.ExecuteNonQuery() MsgBox("Data telah diubah") Private Sub BtnHapus_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnHapus.Click DML.Connection = Database DML.CommandType = CommandType.Text DML.CommandText = "delete from TblMovie where Kode_Movie='" & KdMovieTxt.Text & "'" DML.ExecuteNonQuery() MsgBox("Data telah dihapus")

8 Private Sub BtnBatal_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnBatal.Click Private Sub DGMovie_CellClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DGMovie.CellClick Dim i As Integer = DGMovie.CurrentRow.Index KdMovieTxt.Text = DGMovie.Item(0, i).value JdMovieTxt.Text = DGMovie.Item(1, i).value KategoriCmb.Text = DGMovie.Item(2, i).value RakCmb.Text = DGMovie.Item(3, i).value StockTxt.Text = DGMovie.Item(4, i).value FotoPic.Text = DGMovie.Item(5, i).value KdMovieTxt.Enabled = False BtnSimpan.Enabled = False BtnUbah.Enabled = True BtnHapus.Enabled = True BtnBatal.Enabled = True Private Sub BtnAmbilFoto_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnAmbilFoto.Click OFDFoto.Filter = "JPG *.jpg Bitmap *.bmp" OFDFoto.RestoreDirectory = True OFDFoto.ShowDialog() If OFDFoto.FileName = "" Then Exit Sub Else 'belum ada proses upload file gambar ke folder tertentu FotoPic.Text = OFDFoto.FileName On Error Resume Next FotoPic.ImageLocation = FotoPic.Text End If

9 Private Sub BtnHapusFoto_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnHapusFoto.Click FotoPic.Image = Nothing FotoPic.Text = "" Private Sub BtnTutup_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnTutup.Click Close() Private Sub LaporanPeminjamanToolStripMenuItem_Click(ByVal sender As LaporanPeminjamanToolStripMenuItem.Click FrmLaporanPeminjaman.ShowDialog() Private Sub LaporanPengembalianToolStripMenuItem_Click(ByVal sender As LaporanPengembalianToolStripMenuItem.Click FrmLaporanPengembalian.ShowDialog() End Class Data_Peminjam.vb Imports System.Data Imports System.Data.OleDb Public Class FrmPeminjam Sub Data_Record() Tabel = New Data.OleDb.OleDbDataAdapter("select * from TblPeminjam", Database) Data = New DataSet Tabel.Fill(Data) Record.DataSource = Data

10 Record.DataMember = Data.Tables(0).ToString() DGPeminjam.DataSource = Record DGPeminjam.Columns(0).Visible = False DGPeminjam.Columns(3).Width = 200 Sub Atur() BtnSimpan.Enabled = True BtnHapus.Enabled = False BtnUbah.Enabled = False BtnBatal.Enabled = False KdPeminjamTxt.Text = "" NoKTPTxt.Text = "" NmPeminjamTxt.Text = "" AlmTxt.Text = "" TeleponTxt.Text = "" KdPeminjamTxt.Enabled = False KdPeminjamTxt.Focus() Call Kode_Peminjam() Call Data_Record() Sub Kode_Peminjam() Tabel = New Data.OleDb.OleDbDataAdapter("select * from TblPeminjam order by No Asc", Database) Data = New DataSet Tabel.Fill(Data) Record.DataSource = Data Record.DataMember = Data.Tables(0).ToString() Dim A As DataRow Dim B As Integer = 1 KdPeminjamTxt.Text = "" For Each A In Data.Tables(0).Rows KdPeminjamTxt.Text = A.Item(0) + 1

11 B = B + 1 Next A Select Case B Case Is = 0 KdPeminjamTxt.Text = "PLGN-1" Case Is > 0 KdPeminjamTxt.Text = "PLGN-" & B.ToString & "" End Select Private Sub FrmPeminjam_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Private Sub BtnSimpan_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnSimpan.Click DML.Connection = Database DML.CommandType = CommandType.Text DML.CommandText = "insert into TblPeminjam(Kode_Peminjam,No_KTP,Nama_Peminjam,Alamat,Telepon)" & _ "values('" & KdPeminjamTxt.Text & "','" & NoKtpTxt.Text & "','" & NmPeminjamTxt.Text & _ "','" & AlmTxt.Text & "','" & TeleponTxt.Text & "')" DML.ExecuteNonQuery() MsgBox("Data telah disimpan")

12 Private Sub BtnUbah_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnUbah.Click DML.Connection = Database DML.CommandType = CommandType.Text DML.CommandText = "update TblPeminjam set No_KTP='" & NoKtpTxt.Text & _ "',Nama_Peminjam='" & NmPeminjamTxt.Text & "',Alamat='" & AlmTxt.Text & _ "',Telepon='" & TeleponTxt.Text & "' where Kode_Peminjam='" & KdPeminjamTxt.Text & "'" DML.ExecuteNonQuery() MsgBox("Data telah diubah") Private Sub BtnHapus_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnHapus.Click DML.Connection = Database DML.CommandType = CommandType.Text DML.CommandText = "delete from TblPeminjam where Kode_Peminjam='" & KdPeminjamTxt.Text & "'" DML.ExecuteNonQuery() MsgBox("Data telah dihapus") Private Sub BtnBatal_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnBatal.Click

13 Private Sub BtnTutup_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnTutup.Click Me.Close() Private Sub DataMovieToolStripMenuItem_Click(ByVal sender As DataMovieToolStripMenuItem.Click FrmMovie.ShowDialog() Private Sub KategoriToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles KategoriToolStripMenuItem.Click FrmKategori.ShowDialog() Private Sub RakToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RakToolStripMenuItem.Click FrmRak.ShowDialog() Private Sub DataPeminjamToolStripMenuItem_Click(ByVal sender As DataPeminjamToolStripMenuItem.Click Me.ShowDialog() Private Sub DataPengembalianMovieToolStripMenuItem_Click(ByVal sender As DataPengembalianMovieToolStripMenuItem.Click FrmPengembalian.ShowDialog() Private Sub LaporanPeminjamanToolStripMenuItem_Click(ByVal sender As LaporanPeminjamanToolStripMenuItem.Click FrmLaporanPeminjaman.ShowDialog()

14 Private Sub LaporanPengembalianToolStripMenuItem_Click(ByVal sender As LaporanPengembalianToolStripMenuItem.Click FrmLaporanPengembalian.ShowDialog() Private Sub HitungKeterlambatanToolStripMenuItem_Click(ByVal sender As HitungKeterlambatanToolStripMenuItem.Click FrmPencarian.ShowDialog() Private Sub DGPeminjam_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DGPeminjam.CellClick Dim i As Integer = DGPeminjam.CurrentRow.Index KdPeminjamTxt.Text = DGPeminjam.Item(0, i).value NoKtpTxt.Text = DGPeminjam.Item(1, i).value NmPeminjamTxt.Text = DGPeminjam.Item(2, i).value AlmTxt.Text = DGPeminjam.Item(3, i).value TeleponTxt.Text = DGPeminjam.Item(4, i).value KdPeminjamTxt.Enabled = False BtnSimpan.Enabled = False BtnUbah.Enabled = True BtnHapus.Enabled = True BtnBatal.Enabled = True End Class Data_PengembalianMovie.vb Imports System.Data Imports System.Data.OleDb Public Class FrmPengembalian Sub Hitung_Telat() Dim TelatHari As Long

15 TelatHari = DateDiff(DateInterval.Day, TglKembaliDP.Value, TglPengembalianDP.Value) TelatTxt.Text = "" & TelatHari & " Hari" Private Sub FrmPengembalian_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load TglPengembalianDP.Value = Format(Now) Private Sub NoPeminjamanBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NoPeminjamanBtn.Click Dim No_Peminjaman = InputBox("Masukkan Nomor peminjaman", "Input nomor transaksi peminjaman") NoPeminjamanTxt.Text = No_Peminjaman Private Sub NoPeminjamanTxt_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NoPeminjamanTxt.TextChanged DML.Connection = Database DML.CommandType = CommandType.Text DML.CommandText = "select * from QryPeminjaman where No_Peminjaman='" & NoPeminjamanTxt.Text & _ "' and Status='Pinjam'" Cari = DML.ExecuteReader If Cari.HasRows = True Then Cari.Read() KdMovieTxt.Text = Cari("Kode_Movie") JdMovieTxt.Text = Cari("Judul_Movie") FotoPic.ImageLocation = Cari("Foto") NoKtpTxt.Text = Cari("No_KTP") KdPeminjamTxt.Text = Cari("Kode_Peminjam") NmPeminjamTxt.Text = Cari("Nama_Peminjam") AlmTxt.Text = Cari("Alamat") TeleponTxt.Text = Cari("Telepon") TglPinjamDP.Value = Cari("Tgl_Pinjam") TglKembaliDP.Value = Cari("Tgl_Kembali") TotalTxt.Text = Cari("Total_Harga")

16 JlhKembaliTxt.Text = Cari("Jumlah_Pinjam") Call Hitung_Telat() Else KdMovieTxt.Text = "" JdMovieTxt.Text = "" FotoPic.ImageLocation = "" NoKtpTxt.Text = "" KdPeminjamTxt.Text = "" NmPeminjamTxt.Text = "" AlmTxt.Text = "" TeleponTxt.Text = "" TglPengembalianDP.Value = Format(Now, "dd/mm/yyyy") TelatTxt.Text = "" End If Private Sub OKBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OKBtn.Click DML.Connection = Database DML.CommandType = CommandType.Text DML.CommandText = "insert into TblPengembalian values('" & NoPeminjamanTxt.Text & _ "','" & KdPeminjamTxt.Text & "','" & KdMovieTxt.Text & "','" & Format(TglPinjamDP.Value, "MM/dd/yyyy") & _ "','" & Format(TglKembaliDP.Value, "MM/dd/yyyy") & "','" & TelatTxt.Text & "','Kembali','" & JlhKembaliTxt.Text & "','" & TotalTxt.Text & "')" DML.ExecuteNonQuery() MsgBox("Data telah diproses") Me.Close()

17 Private Sub TglPengembalianDP_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TglPengembalianDP.ValueChanged Call Hitung_Telat() Private Sub BtnTutup_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnTutup.Click Me.Close() Private Sub HitungKeterlambatanToolStripMenuItem_Click(ByVal sender As HitungKeterlambatanToolStripMenuItem.Click FrmPencarian.ShowDialog() End Class Kategori.vb Imports System.Data Imports System.Data.OleDb Public Class FrmKategori Sub Data_Record() Tabel = New Data.OleDb.OleDbDataAdapter("select * from TblKategori", Database) Data = New DataSet Tabel.Fill(Data) Record.DataSource = Data Record.DataMember = Data.Tables(0).ToString() DGKategori.DataSource = Record DGKategori.Columns(0).Width = 300 Sub Atur()

18 BtnSimpan.Enabled = True BtnUbah.Enabled = False BtnHapus.Enabled = False BtnBatal.Enabled = False KategoriTxt.Text = "" KategoriTxt.Focus() Call Data_Record() Private Sub FrmKategori_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Private Sub BtnSimpan_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnSimpan.Click If KategoriTxt.Text = "" Then KategoriTxt.Focus() : Exit Sub DML.Connection = Database DML.CommandType = CommandType.Text DML.CommandText = "insert into TblKategori values('" & KategoriTxt.Text & "')" DML.ExecuteNonQuery() MsgBox("Data telah disimpan") Private Sub BtnUbah_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnUbah.Click If KategoriTxt.Text = "" Then KategoriTxt.Focus() : Exit Sub DML.Connection = Database

19 DML.CommandType = CommandType.Text DML.CommandText = "update TblKategori set Kategori='" & KategoriTxt.Text & _ "' where Kategori='" & DGKategori.SelectedCells(0).Value & "'" DML.ExecuteNonQuery() MsgBox("Data telah diubah") Private Sub BtnBatal_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnBatal.Click Private Sub BtnHapus_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnHapus.Click If KategoriTxt.Text = "" Then KategoriTxt.Focus() : Exit Sub DML.Connection = Database DML.CommandType = CommandType.Text DML.CommandText = "delete from TblKategori where Kategori='" & KategoriTxt.Text & "'" DML.ExecuteNonQuery() MsgBox("Data telah dihapus") Private Sub BtnTutup_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnTutup.Click Me.Close()

20 Private Sub DGKategori_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DGKategori.CellContentClick KategoriTxt.Text = DGKategori.SelectedCells(0).Value BtnSimpan.Enabled = False BtnUbah.Enabled = True BtnHapus.Enabled = True BtnBatal.Enabled = True Private Sub DataMovieToolStripMenuItem_Click(ByVal sender As DataMovieToolStripMenuItem.Click FrmMovie.ShowDialog() Private Sub KategoriToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles KategoriToolStripMenuItem.Click Me.ShowDialog() Private Sub RakToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RakToolStripMenuItem.Click FrmRak.ShowDialog() Private Sub DataPeminjamToolStripMenuItem_Click(ByVal sender As DataPeminjamToolStripMenuItem.Click FrmPeminjam.ShowDialog() Private Sub DataPengembalianMovieToolStripMenuItem_Click(ByVal sender As DataPengembalianMovieToolStripMenuItem.Click

21 FrmPengembalian.ShowDialog() Private Sub LaporanPeminjamanToolStripMenuItem_Click(ByVal sender As LaporanPeminjamanToolStripMenuItem.Click FrmLaporanPeminjaman.ShowDialog() Private Sub LaporanPengembalianToolStripMenuItem_Click(ByVal sender As LaporanPengembalianToolStripMenuItem.Click FrmLaporanPengembalian.ShowDialog() Private Sub HitungKeterlambatanToolStripMenuItem_Click(ByVal sender As HitungKeterlambatanToolStripMenuItem.Click FrmPencarian.ShowDialog() End Class Laporan_Peminjaman.vb Imports System.Data Imports System.Data.OleDb Public Class FrmLaporanPeminjaman Sub Data_Record() Tabel = New Data.OleDb.OleDbDataAdapter("select * from QryPeminjaman where Status='Pinjam'", Database) Data = New DataSet Tabel.Fill(Data) Record_Peminjaman.DataSource = Data Record_Peminjaman.DataMember = Data.Tables(0).ToString() DGLaporanPeminjaman.DataSource = Record_Peminjaman

22 Sub Atur() BtnUbah.Enabled = False BtnHapus.Enabled = False Call Data_Record() Private Sub FrmLaporanPeminjaman_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Private Sub BtnUbah_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnUbah.Click FrmPeminjaman.OKBtn.Text = "Ubah" FrmPeminjaman.NoPeminjamanTxt.Text = DGLaporanPeminjaman.SelectedCells(0).Value FrmPeminjaman.ShowDialog() Private Sub BtnHapus_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnHapus.Click FrmPeminjaman.OKBtn.Text = "Hapus" FrmPeminjaman.NoPeminjamanTxt.Text = DGLaporanPeminjaman.SelectedCells(0).Value FrmPeminjaman.ShowDialog() Private Sub BtnTutup_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnTutup.Click Me.Close() Private Sub BtnPrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnPrint.Click Dim a As New RptPeminjaman

23 Dim b As New Peminjaman b.crpeminjaman.reportsource = a b.showdialog() Private Sub DGLaporanPeminjaman_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DGLaporanPeminjaman.CellClick FrmPeminjaman.NoPeminjamanTxt.Text = DGLaporanPeminjaman.SelectedCells(0).Value FrmPeminjaman.KdMovieTxt.Text = DGLaporanPeminjaman.SelectedCells(1).Value FrmPeminjaman.KdPeminjamTxt.Text = DGLaporanPeminjaman.SelectedCells(5).Value FrmPeminjaman.TglPinjamDP.Value = DGLaporanPeminjaman.SelectedCells(10).Value FrmPeminjaman.TglKembaliDP.Value = DGLaporanPeminjaman.SelectedCells(11).Value FrmPeminjaman.LamaTxt.Text = DGLaporanPeminjaman.SelectedCells(12).Value FrmPeminjaman.JlhDvdTxt.Text = DGLaporanPeminjaman.SelectedCells(15).Value BtnUbah.Enabled = True BtnHapus.Enabled = True End Class Laporan_Pengembalian.vb Imports System.Data Imports System.Data.OleDb Public Class FrmLaporanPengembalian Dim mrow As Integer = 0 Dim newpage As Boolean = True Sub Data_Record() Tabel = New Data.OleDb.OleDbDataAdapter("select * from QryPengembalian where Status='kembali'", Database) Data = New DataSet

24 Tabel.Fill(Data) Record_Peminjaman.DataSource = Data Record_Peminjaman.DataMember = Data.Tables(0).ToString() DGLaporanPengembalian.DataSource = Record_Peminjaman Sub Atur() BtnUbah.Enabled = False BtnHapus.Enabled = False Call Data_Record() Private Sub BtnUbah_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnUbah.Click FrmPengembalian.OKBtn.Text = "Ubah" FrmPengembalian.NoPeminjamanTxt.Text = DGLaporanPengembalian.SelectedCells(0).Value FrmPengembalian.ShowDialog() Private Sub BtnHapus_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnHapus.Click FrmPengembalian.OKBtn.Text = "Hapus" FrmPengembalian.NoPeminjamanTxt.Text = DGLaporanPengembalian.SelectedCells(0).Value FrmPengembalian.ShowDialog() Private Sub BtnTutup_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnTutup.Click Me.Close() Private Sub FrmLaporanPengembalian_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

25 Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage With DGLaporanPengembalian Dim fmt As StringFormat = New StringFormat(StringFormatFlags.LineLimit) fmt.linealignment = StringAlignment.Center fmt.trimming = StringTrimming.EllipsisCharacter Dim y As Single = e.marginbounds.top Do While mrow <.RowCount Dim row As DataGridViewRow =.Rows(mRow) Dim x As Single = e.marginbounds.left Dim h As Single = 0 For Each cell As DataGridViewCell In row.cells Dim rc As RectangleF = New RectangleF(x, y, cell.size.width, cell.size.height) e.graphics.drawrectangle(pens.black, rc.left, rc.top, rc.width, rc.height) If (newpage) Then e.graphics.drawstring(dglaporanpengembalian.columns(cell.columnindex).head ertext,.font, Brushes.Black, rc, fmt) Else e.graphics.drawstring(dglaporanpengembalian.rows(cell.rowindex).cells(cell.c olumnindex).formattedvalue.tostring(),.font, Brushes.Black, rc, fmt) End If x += rc.width h = Math.Max(h, rc.height) Next newpage = False y += h mrow += 1 If y + h > e.marginbounds.bottom Then e.hasmorepages = True mrow -= 1 newpage = True

26 Exit Sub End If Loop mrow = 0 End With Private Sub BtnPrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnPrint.Click Dim a As New RptPengembalian Dim b As New Pengembalian b.crpengembalian.reportsource = a b.showdialog() Private Sub DGLaporanPengembalian_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DGLaporanPengembalian.CellClick FrmPengembalian.NoPeminjamanTxt.Text = DGLaporanPengembalian.SelectedCells(0).Value FrmPengembalian.KdMovieTxt.Text = DGLaporanPengembalian.SelectedCells(1).Value FrmPengembalian.KdPeminjamTxt.Text = DGLaporanPengembalian.SelectedCells(5).Value FrmPengembalian.TglPinjamDP.Value = DGLaporanPengembalian.SelectedCells(9).Value FrmPengembalian.TglKembaliDP.Value = DGLaporanPengembalian.SelectedCells(10).Value FrmPengembalian.JlhKembaliTxt.Text = DGLaporanPengembalian.SelectedCells(14).Value FrmPengembalian.TotalTxt.Text = DGLaporanPengembalian.SelectedCells(15).Value BtnUbah.Enabled = True BtnHapus.Enabled = True End Class ModKoneksi.vb

27 Imports System.Data Imports System.Data.OleDb Module ModKoneksi Public Database As OleDbConnection Public Tabel As OleDbDataAdapter Public Data As DataSet Public Record, Record_Peminjaman As New BindingSource Public DML As New OleDbCommand Public Cari As OleDbDataReader Public Sub Koneksi() Database = New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=RentalDVD.accdb") Database.Open() End Module Peminjaman_Movie.vb Imports System.Data Imports System.Data.OleDb Public Class FrmPeminjaman Sub No_Peminjaman() Tabel = New Data.OleDb.OleDbDataAdapter("select * from TblPeminjaman order by No_Peminjaman asc", Database) Data = New DataSet Tabel.Fill(Data) Record.DataSource = Data Record.DataMember = Data.Tables(0).ToString() Dim A As DataRow Dim B As Integer = 1

28 NoPeminjamanTxt.Text = "" For Each A In Data.Tables(0).Rows 'NoPeminjamanTxt.Text = A.Item(0) + 1 B = B + 1 Next A Select Case B Case Is = 0 NoPeminjamanTxt.Text = "P001" Case Is > 0 NoPeminjamanTxt.Text = "P00" & B.ToString & "" End Select Sub Atur() If OKBtn.Text = "OK" Then KdMovieTxt.Text = "" KdPeminjamTxt.Text = "" LamaTxt.Text = "" TglPinjamDP.Value = Format(Now) TglKembaliDP.Value = Format(Now) Call No_Peminjaman() End If Sub Lama_Pinjam() Dim SelisihHari As Long SelisihHari = DateDiff(DateInterval.Day, TglPinjamDP.Value, TglKembaliDP.Value) LamaTxt.Text = SelisihHari Call Total_Harga() Sub Total_Harga() Dim TotalHarga As Long TotalHarga = Val(LamaTxt.Text) * Val(HargaPerhariTxt.Text) HargaTxt.Text = TotalHarga

29 Private Sub FrmPeminjaman_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Private Sub OKBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OKBtn.Click DML.Connection = Database DML.CommandType = CommandType.Text Select Case OKBtn.Text Case "OK" DML.CommandText = "insert into TblPeminjaman values('" & NoPeminjamanTxt.Text & _ "','" & KdMovieTxt.Text & "','" & KdPeminjamTxt.Text & "','" & Format(TglPinjamDP.Value, "MM/dd/yyyy") & _ "','" & Format(TglKembaliDP.Value, "MM/dd/yyyy") & "','" & LamaTxt.Text & "','Pinjam','" & JlhDvdTxt.Text & "','" & HargaTxt.Text & "')" Case "Ubah" DML.CommandText = "update TblPeminjaman set Kode_Buku='" & KdMovieTxt.Text & _ "', Kode_Peminjam='" & KdPeminjamTxt.Text & "', Tgl_Pinjam='" & TglPinjamDP.Value & _ "', Tgl_Kembali='" & TglKembaliDP.Value & "', Lama_Pinjam='" & LamaTxt.Text & _ "' where No_Peminjaman='" & NoPeminjamanTxt.Text & "'" Case "Hapus" DML.CommandText = "delete from TblPeminjaman where No_Peminjaman='" & NoPeminjamanTxt.Text & "'" End Select DML.ExecuteNonQuery() MsgBox("Data telah diproses") 'Call FrmLaporanPeminjaman.Data_Record() KdMovieTxt.Text = "" KdPeminjamTxt.Text = "" LamaTxt.Text = ""

30 FotoPic.Image = Nothing JlhDvdTxt.Text = "" TglPinjamDP.Value = Format(Now, "MM/dd/yyyy") TglKembaliDP.Value = Format(Now, "MM/dd/yyyy") Call No_Peminjaman() Private Sub KdMovieBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles KdMovieBtn.Click Dim Kode_Movie = InputBox("Masukkan kode Movie", "Input Movie yang dipinjam") KdMovieTxt.Text = Kode_Movie Private Sub KdMovieTxt_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles KdMovieTxt.TextChanged DML.Connection = Database DML.CommandType = CommandType.Text DML.CommandText = "select * from TblMovie where Kode_Movie='" & KdMovieTxt.Text & "'" Cari = DML.ExecuteReader If Cari.HasRows = True Then Cari.Read() JdMovieTxt.Text = Cari("Judul_Movie") KategoriTxt.Text = Cari("Kategori") RakTxt.Text = Cari("Rak") FotoPic.ImageLocation = Cari("Foto") Else KdMovieTxt.Text = "" JdMovieTxt.Text = "" KategoriTxt.Text = "" RakTxt.Text = "" FotoPic.Image = Nothing End If

31 Private Sub KdPeminjamBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles KdPeminjamBtn.Click Dim Kode_Peminjam = InputBox("Masukkan Kode Peminjam.", "input peminjam yang meminjam DVD") KdPeminjamTxt.Text = Kode_Peminjam Private Sub KdPeminjamTxt_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles KdPeminjamTxt.TextChanged DML.Connection = Database DML.CommandType = CommandType.Text DML.CommandText = "select * from TblPeminjam where Kode_Peminjam='" & KdPeminjamTxt.Text & "'" Cari = DML.ExecuteReader If Cari.HasRows = True Then Cari.Read() NoKtpTxt.Text = Cari("No_KTP") NmPeminjamTxt.Text = Cari("Nama_Peminjam") AlmTxt.Text = Cari("Alamat") TeleponTxt.Text = Cari("Telepon") Else NoKtpTxt.Text = "" NmPeminjamTxt.Text = "" AlmTxt.Text = "" TeleponTxt.Text = "" End If

32 Private Sub TglPinjamDP_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TglPinjamDP.ValueChanged Call Lama_Pinjam() Private Sub TglKembaliDP_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TglKembaliDP.ValueChanged Call Lama_Pinjam() Private Sub BtnTutup_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnTutup.Click Me.Close() Private Sub HargaTxt_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles HargaTxt.TextChanged Call Total_Harga() Private Sub HitungKeterlambatanToolStripMenuItem_Click(ByVal sender As HitungKeterlambatanToolStripMenuItem.Click FrmPencarian.ShowDialog() End Class Pencarian.vb Imports System.Data Imports System.Data.OleDb Public Class FrmPencarian Private Sub BtnCari_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnCari.Click DML.Connection = Database DML.CommandType = CommandType.Text

33 DML.CommandText = "select * from TblMovie where Judul_Movie like '%" + JdMovieTxt.Text + "%'" Cari = DML.ExecuteReader Cari.Read() RakTxt.Text = Cari.Item("Rak") MsgBox("DVD Tidak Ada") Private Sub BtnTutup_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnTutup.Click Me.Close() Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click JdMovieTxt.Clear() RakTxt.Clear() End Class Rak.vb Imports System.Data Imports System.Data.OleDb Public Class FrmRak Sub Data_Record() Tabel = New Data.OleDb.OleDbDataAdapter("select * from TblRak", Database) Data = New DataSet Tabel.Fill(Data) Record.DataSource = Data Record.DataMember = Data.Tables(0).ToString() DGRak.DataSource = Record

34 DGRak.Columns(0).Width = 300 Sub Atur() BtnSimpan.Enabled = True BtnUbah.Enabled = False BtnHapus.Enabled = False BtnBatal.Enabled = False RakTxt.Text = "" RakTxt.Focus() Call Data_Record() Private Sub FrmRak_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Private Sub BtnSimpan_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnSimpan.Click If RakTxt.Text = "" Then RakTxt.Focus() : Exit Sub DML.Connection = Database DML.CommandType = CommandType.Text DML.CommandText = "insert into TblRak values('" & RakTxt.Text & "')" DML.ExecuteNonQuery() MsgBox("Data telah disimpan") Private Sub BtnUbah_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnUbah.Click If RakTxt.Text = "" Then RakTxt.Focus() : Exit Sub

35 DML.Connection = Database DML.CommandType = CommandType.Text DML.CommandText = "update TblRak set Rak='" & RakTxt.Text & _ "' where Rak='" & DGRak.SelectedCells(0).Value & "'" DML.ExecuteNonQuery() MsgBox("Data telah diubah") Private Sub BtnBatal_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnBatal.Click Private Sub BtnHapus_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnHapus.Click If RakTxt.Text = "" Then RakTxt.Focus() : Exit Sub DML.Connection = Database DML.CommandType = CommandType.Text DML.CommandText = "delete from TblRak where Rak='" & RakTxt.Text & "'" DML.ExecuteNonQuery() MsgBox("Data telah dihapus") Private Sub BtnTutup_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnTutup.Click Me.Close()

36 Private Sub DGRak_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DGRak.CellContentClick RakTxt.Text = DGRak.SelectedCells(0).Value BtnSimpan.Enabled = False BtnUbah.Enabled = True BtnHapus.Enabled = True BtnBatal.Enabled = True Private Sub DataMovieToolStripMenuItem_Click(ByVal sender As DataMovieToolStripMenuItem.Click FrmMovie.ShowDialog() Private Sub DataPeminjamToolStripMenuItem_Click(ByVal sender As DataPeminjamToolStripMenuItem.Click FrmPeminjam.ShowDialog() Private Sub KategoriToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles KategoriToolStripMenuItem.Click FrmKategori.ShowDialog() Private Sub RakToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RakToolStripMenuItem.Click Me.ShowDialog()

37 Private Sub DataPengembalianMovieToolStripMenuItem_Click(ByVal sender As DataPengembalianMovieToolStripMenuItem.Click FrmPengembalian.ShowDialog() Private Sub LaporanPeminjamanToolStripMenuItem_Click(ByVal sender As LaporanPeminjamanToolStripMenuItem.Click FrmLaporanPeminjaman.ShowDialog() Private Sub LaporanPengembalianToolStripMenuItem_Click(ByVal sender As LaporanPengembalianToolStripMenuItem.Click FrmLaporanPengembalian.ShowDialog() Private Sub HitungKeterlambatanToolStripMenuItem_Click(ByVal sender As HitungKeterlambatanToolStripMenuItem.Click FrmPencarian.ShowDialog() End Class

LAMPIRAN. Universitas Sumatera Utara

LAMPIRAN. Universitas Sumatera Utara LAMPIRAN 1. Modul Imports System.Data Imports System.Data.OleDb Module Module1 Public conn As OleDbConnection Public CMD As OleDbCommand Public DS As New DataSet Public DA As OleDbDataAdapter Public RD

More information

LAMPIRAN A-2 : LAPORAN PENJUALAN DOKUMEN KELUARAN

LAMPIRAN A-2 : LAPORAN PENJUALAN DOKUMEN KELUARAN LAMPIRAN A-2 : LAPORAN PENJUALAN DOKUMEN KELUARAN LAMPIRAN A-1 : NOTA DOKUMEN KELUARAN LAMPIRAN B MASUKAN SISTEM BERJALAN LAMPIRAN B-1 : DATA BARANG DOKUMEN MASUKAN LAMPIRAN B-2 : DATA PELANGGAN DOKUMEN

More information

Kartu Bimbingan Tugas Akhir Mahasiswa

Kartu Bimbingan Tugas Akhir Mahasiswa KEMENTRIAN PENDIDIKAN DAN KEBUDAYAAN UNIVERSITAS SUMATERA UTARA FAKULTAS MATEMATIKA DAN ILMU PENGETAHUAN ALAM Jln. Bioteknologi No. 1 Kampus USU Padang Bulan Medan-20155 Telp. (061) 8214290, 8211212, 8211414

More information

LISTING PROGRAM. 1. Tampilan Awal. 2. Menu Login. Public Class Awal

LISTING PROGRAM. 1. Tampilan Awal. 2. Menu Login. Public Class Awal LISTING PROGRAM 1. Tampilan Awal Public Class Awal Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick ProgressBar1.Increment(10) If ProgressBar1.Value

More information

L A M P I R A N. Universitas Sumatera Utara

L A M P I R A N. Universitas Sumatera Utara L A M P I R A N 1 Listing Program 1. Form Menu Public Class frm_menu Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click frm_login.show() Me.Hide()

More information

A-1 LISTING PROGRAM. Halaman Koneksi. Universitas Sumatera Utara

A-1 LISTING PROGRAM. Halaman Koneksi. Universitas Sumatera Utara A-1 LISTING PROGRAM Halaman Koneksi Imports System.Data.OleDb Imports System.Data.OleDb.OleDbCommand Module koneksi Public con As OleDbConnection Public cmd As OleDbCommand Public dtr As OleDbDataReader

More information

Form Adapter Example. DRAFT Document ID : Form_Adapter.PDF Author : Michele Harris Version : 1.1 Date :

Form Adapter Example. DRAFT Document ID : Form_Adapter.PDF Author : Michele Harris Version : 1.1 Date : Form Adapter Example DRAFT Document ID : Form_Adapter.PDF Author : Michele Harris Version : 1.1 Date : 2009-06-19 Form_Adapter.doc DRAFT page 1 Table of Contents Creating Form_Adapter.vb... 2 Adding the

More information

Lampiran 1 Kode Program

Lampiran 1 Kode Program 53 Lampiran 1 Kode Program Kode Program 1 Kode Menu Peminjaman Private Sub BT_Cari_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BT_Cari.Click Call CariKaset() Private Sub RB_CheckedChanged(ByVal

More information

LISTING PROGRAM. PrivateSub KeluarToolStripMenuItem_Click(sender AsObject, e AsEventArgs) Handles KeluarToolStripMenuItem.Click Close() EndSub

LISTING PROGRAM. PrivateSub KeluarToolStripMenuItem_Click(sender AsObject, e AsEventArgs) Handles KeluarToolStripMenuItem.Click Close() EndSub LISTING PROGRAM 1.Tampilan awal PublicClassmm PrivateSub InputDataGuruToolStripMenuItem_Click(sender AsObject, e AsEventArgs) Handles InputDataGuruToolStripMenuItem.Click guru.show() Me.Hide() EndSub PrivateSub

More information

DO NOT COPY AMIT PHOTOSTUDIO

DO NOT COPY AMIT PHOTOSTUDIO AMIT PHOTOSTUDIO These codes are provided ONLY for reference / Help developers. And also SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUERMENT FOR THE AWARD OF BACHELOR OF COMPUTER APPLICATION (BCA) All rights

More information

LAMPIRAN LISTING PROGRAM

LAMPIRAN LISTING PROGRAM LAMPIRAN LISTING PROGRAM Imports System Imports System.IO Imports System.Math Public Class frmutama Dim dicari As DirectoryInfo Dim flpath As String, srcpath As String Dim asnode As Double, dsnode As Double,

More information

Learning VB.Net. Tutorial 19 Classes and Inheritance

Learning VB.Net. Tutorial 19 Classes and Inheritance Learning VB.Net Tutorial 19 Classes and Inheritance Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple applications, hope you

More information

FOR 240 Homework Assignment 4 Using DBGridView and Other VB Controls to Manipulate Database Introduction to Computing in Natural Resources

FOR 240 Homework Assignment 4 Using DBGridView and Other VB Controls to Manipulate Database Introduction to Computing in Natural Resources FOR 240 Homework Assignment 4 Using DBGridView and Other VB Controls to Manipulate Database Introduction to Computing in Natural Resources This application demonstrates how a DataGridView control can be

More information

"!#... )*! "!# )+, -./ 01 $

!#... )*! !# )+, -./ 01 $ Email engauday@hotmail.com! "!#... $ %&'... )*! "!# )+, -./ 01 $ ) 1+ 2#3./ 01 %.. 7# 89 ; )! 5/< 3! = ;, >! 5 6/.?

More information

C16 Visual Basic Net Programming

C16 Visual Basic Net Programming C16 Visual Basic Net Programming Student ID Student Name Date - Module Tutor - 1 P a g e Report Contents Introduction... 2 Software Development Process... 3 Self Reflection... 6 References... 6 Appendices...

More information

PROGRAMMING ASSIGNMENT: MOVIE QUIZ

PROGRAMMING ASSIGNMENT: MOVIE QUIZ PROGRAMMING ASSIGNMENT: MOVIE QUIZ For this assignment you will be responsible for creating a Movie Quiz application that tests the user s of movies. Your program will require two arrays: one that stores

More information

C4.3, 4 Lab: Conditionals - Select Statement and Additional Input Controls Solutions

C4.3, 4 Lab: Conditionals - Select Statement and Additional Input Controls Solutions C4.3, 4 Lab: Conditionals - Select Statement and Additional Input Controls Solutions Between the comments included with the code and the code itself, you shouldn t have any problems understanding what

More information

Instructor s Notes Programming Logic Printing Reports. Programming Logic. Printing Custom Reports

Instructor s Notes Programming Logic Printing Reports. Programming Logic. Printing Custom Reports Instructor s Programming Logic Printing Reports Programming Logic Quick Links & Text References Printing Custom Reports Printing Overview Page 575 Linking Printing Objects No book reference Creating a

More information

Connection Example. Document ID : Connection_Example.PDF Author : Michele Harris Version : 1.1 Date :

Connection Example. Document ID : Connection_Example.PDF Author : Michele Harris Version : 1.1 Date : Connection Example Document ID : Connection_Example.PDF Author : Michele Harris Version : 1.1 Date : 2009-06-19 page 1 Table of Contents Connection Example... 2 Adding the Code... 2 Quick Watch myconnection...

More information

Objectives. After completing this topic, the students will: Understand of the concept of polymorphism Know on How to implement 2 types of polymorphism

Objectives. After completing this topic, the students will: Understand of the concept of polymorphism Know on How to implement 2 types of polymorphism Polymorphism Objectives After completing this topic, the students will: Understand of the concept of polymorphism Know on How to implement 2 types of polymorphism Definition Polymorphism provides the ability

More information

IMS1906: Business Software Fundamentals Tutorial exercises Week 5: Variables and Constants

IMS1906: Business Software Fundamentals Tutorial exercises Week 5: Variables and Constants IMS1906: Business Software Fundamentals Tutorial exercises Week 5: Variables and Constants These notes are available on the IMS1906 Web site http://www.sims.monash.edu.au Tutorial Sheet 4/Week 5 Please

More information

In this tutorial we will create a simple calculator to Add/Subtract/Multiply and Divide two numbers and show a simple message box result.

In this tutorial we will create a simple calculator to Add/Subtract/Multiply and Divide two numbers and show a simple message box result. Simple Calculator In this tutorial we will create a simple calculator to Add/Subtract/Multiply and Divide two numbers and show a simple message box result. Let s get started First create a new Visual Basic

More information

โปรแกรมช วยทดสอบหม อแปลงกระแส

โปรแกรมช วยทดสอบหม อแปลงกระแส โปรแกรมช วยทดสอบหม อแปลงกระแส 1.เมน ของโปรแกรม ภาพท 1 หน าเมน ของโปรแกรม Public Class frmmain Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

More information

Learning VB.Net. Tutorial 17 Classes

Learning VB.Net. Tutorial 17 Classes Learning VB.Net Tutorial 17 Classes Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple applications, hope you enjoy it. If

More information

Learning VB.Net. Tutorial 10 Collections

Learning VB.Net. Tutorial 10 Collections Learning VB.Net Tutorial 10 Collections Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple applications, hope you enjoy it.

More information

Tutorial, Source code, Request Program Visual Basic

Tutorial, Source code, Request Program Visual Basic Tutorial, Source code, Request Program Visual Basic Oleh : Moh. A Azis Membuat Form Data Barang Program Persediaan Barang Form Data Barang digunakan untuk menyimpan data barang dan memberikan info mengenai

More information

VISUAL BASIC PROGRAMMING (44) Technical Task KEY. Regional 2013 TOTAL POINTS (485)

VISUAL BASIC PROGRAMMING (44) Technical Task KEY. Regional 2013 TOTAL POINTS (485) 5 Pages VISUAL BASIC PROGRAMMING (44) Technical Task KEY Regional 2013 TOTAL POINTS (485) Graders: Please double-check and verify all scores! Property of Business Professionals of America. May be reproduced

More information

To enter the number in decimals Label 1 To show total. Text:...

To enter the number in decimals Label 1 To show total. Text:... Visual Basic tutorial - currency converter We will use visual studio to create a currency converter where we can convert a UK currency pound to other currencies. This is the interface for the application.

More information

Revision for Final Examination (Second Semester) Grade 9

Revision for Final Examination (Second Semester) Grade 9 Revision for Final Examination (Second Semester) Grade 9 Name: Date: Part 1: Answer the questions given below based on your knowledge about Visual Basic 2008: Question 1 What is the benefit of using Visual

More information

1. Create your First VB.Net Program Hello World

1. Create your First VB.Net Program Hello World 1. Create your First VB.Net Program Hello World 1. Open Microsoft Visual Studio and start a new project by select File New Project. 2. Select Windows Forms Application and name it as HelloWorld. Copyright

More information

Else. End If End Sub End Class. PDF created with pdffactory trial version

Else. End If End Sub End Class. PDF created with pdffactory trial version Dim a, b, r, m As Single Randomize() a = Fix(Rnd() * 13) b = Fix(Rnd() * 13) Label1.Text = a Label3.Text = b TextBox1.Clear() TextBox1.Focus() Private Sub Button2_Click(ByVal sender As System.Object, ByVal

More information

MATFOR In Visual Basic

MATFOR In Visual Basic Quick Start t t MATFOR In Visual Basic ANCAD INCORPORATED TEL: +886(2) 8923-5411 FAX: +886(2) 2928-9364 support@ancad.com www.ancad.com 2 MATFOR QUICK START Information in this instruction manual is subject

More information

VISUAL BASIC II CC111 INTRODUCTION TO COMPUTERS

VISUAL BASIC II CC111 INTRODUCTION TO COMPUTERS VISUAL BASIC II CC111 INTRODUCTION TO COMPUTERS Intended Learning Objectives Able to build a simple Visual Basic Application. 2 The Sub Statement Private Sub ControlName_eventName(ByVal sender As System.Object,

More information

This PDF was generated in real-time using DynamicPDF; Generator for.net.

This PDF was generated in real-time using DynamicPDF; Generator for.net. TableReport.aspx 1 1 Imports System 2 Imports System.Data 3 Imports System.Data.SqlClient 4 5 Imports cete.dynamicpdf 6

More information

LISTING PROGRAM. mainform.vb A-1. Universitas Sumatera Utara

LISTING PROGRAM. mainform.vb A-1. Universitas Sumatera Utara A-1 LISTING PROGRAM mainform.vb Imports System.IO Public Class mainform Private Sub mainform_load(byval sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load enkripsirb.checked = True

More information

ก Microsoft Visual Studio 2008

ก Microsoft Visual Studio 2008 ก 58 ก ก ก ก ก 58 59 ก Microsoft Visual Studio 2008 1. DVD ก MSVS2008 ก MSVS2008 ก ก MSVS2008 ก ก 180 DVD DVD ก MSVS2008 ก ก Install Visual Studio 2008 2. ก ก ก ก ก Next 3. ก ก Options Page ก Custom ก

More information

Form Connection. Imports System Imports System.Threading Imports System.IO.Ports Imports System.ComponentModel

Form Connection. Imports System Imports System.Threading Imports System.IO.Ports Imports System.ComponentModel Form Connection Imports System Imports System.Threading Imports System.IO.Ports Imports System.ComponentModel Public Class connection '------------------------------------------------ Dim myport As Array

More information

CALIFORNIA STATE UNIVERSITY, SACRAMENTO College of Business Administration. MIS 15 Introduction to Business Programming. Programming Assignment 3 (P3)

CALIFORNIA STATE UNIVERSITY, SACRAMENTO College of Business Administration. MIS 15 Introduction to Business Programming. Programming Assignment 3 (P3) CALIFORNIA STATE UNIVERSITY, SACRAMENTO College of Business Administration MIS 15 Introduction to Business Programming Programming Assignment 3 (P3) Points: 50 Due Date: Tuesday, May 10 The purpose of

More information

Check out the demo video of this application so you know what you will be making in this tutorial.

Check out the demo video of this application so you know what you will be making in this tutorial. Visual Basic - System Information Viewer Welcome to our special tutorial of visual basic. In this tutorial we will use Microsoft visual studio 2010 version. You can download it for free from their website.

More information

Learning VB.Net. Tutorial 16 Modules

Learning VB.Net. Tutorial 16 Modules Learning VB.Net Tutorial 16 Modules Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple applications, hope you enjoy it. If

More information

End Sub. Sub Kunci() Dim i As Integer For i = 0 To 4 Txtfield(i).Locked = True Next i grddatagrid.enabled = False End Sub

End Sub. Sub Kunci() Dim i As Integer For i = 0 To 4 Txtfield(i).Locked = True Next i grddatagrid.enabled = False End Sub Source Aplikasi Sistem Informasi Akademik GENERAL Dim db As Connection Dim WithEvents adoprimaryrs1 As Recordset Dim WithEvents adoprimaryrs2 As Recordset Dim WithEvents rscaridata As Recordset Dim cekid

More information

Mr.Khaled Anwar ( )

Mr.Khaled Anwar ( ) The Rnd() function generates random numbers. Every time Rnd() is executed, it returns a different random fraction (greater than or equal to 0 and less than 1). If you end execution and run the program

More information

A-1 LISTING PROGRAM. 1. Module1

A-1 LISTING PROGRAM. 1. Module1 A-1 LISTING PROGRAM 1. Module1 Imports System.Data.Odbc Imports System.Data Imports System.Data.SqlClient Imports MySql.Data.MySqlClient Module Module1 Public userid As String Public level As String Public

More information

Learning VB.Net. Tutorial 15 Structures

Learning VB.Net. Tutorial 15 Structures Learning VB.Net Tutorial 15 Structures Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple applications, hope you enjoy it.

More information

S.2 Computer Literacy Question-Answer Book

S.2 Computer Literacy Question-Answer Book S.2 C.L. Half-yearly Examination (2012-13) 1 12-13 S.2 C.L. Question- Answer Book Hong Kong Taoist Association Tang Hin Memorial Secondary School 2012-2013 Half-yearly Examination S.2 Computer Literacy

More information

LAMPIRAN FORM 1 Universitas Sumatera Universitas Utara

LAMPIRAN FORM 1 Universitas Sumatera Universitas Utara LAMPIRAN FORM 1 Private Sub Text2_KeyPress(KeyAscii As Integer) If KeyAscii = vbkeyreturn Then Set tbladministrator = New ADODB.Recordset With tbladministrator.open "SELECT * FROM Administrator WHERE userid

More information

LISTING PROGRAM. 1. Form Login. Private Sub BATAL_Click() End End Sub

LISTING PROGRAM. 1. Form Login. Private Sub BATAL_Click() End End Sub LISTING PROGRAM 1. Form Login Private Sub BATAL_Click() End Sub Bersih() USERNAME.Text = "" PASSWORD.Text = "" Private Sub Form_Load() Bersih Private Sub OK_Click() Sql = "select*from tbl_login where username='"

More information

Private Sub Cours_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Private Sub Cours_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Public Class Cours Private nc As Integer Private Sub Cours_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'TODO : cette ligne de code charge les données dans la table

More information

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Label1.Text = Label1.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Label1.Text = Label1. 練習問題 1-1 Label1 Label1.Text = Label1.Text + 2 練習問題 1-2 Button2 Label1 Label1.Text = Label1.Text+ 2 Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

More information

Year 12 : Visual Basic Tutorial.

Year 12 : Visual Basic Tutorial. Year 12 : Visual Basic Tutorial. STUDY THIS Input and Output (Text Boxes) The three stages of a computer process Input Processing Output Data is usually input using TextBoxes. [1] Create a new Windows

More information

Computing Science Unit 1

Computing Science Unit 1 Computing Science Unit 1 Software Design and Development Programming Practical Tasks Business Information Technology and Enterprise Contents Input Validation Find Min Find Max Linear Search Count Occurrences

More information

Visual Basic: Opdracht Structuur

Visual Basic: Opdracht Structuur Visual Basic: Opdracht Structuur HoofdMenu.vb SubMenu_Kwadraat.vb Form1.vb Form2.vb Submenu_Som.vb Form3.vb Form4.vb SubMenu_Gem.vb Form5.vb Form6.vb Form10.vb SubMenu_Naam.vb Form7.vb Form11.vb Form8.vb

More information

DEVELOPING OBJECT ORIENTED APPLICATIONS

DEVELOPING OBJECT ORIENTED APPLICATIONS DEVELOPING OBJECT ORIENTED APPLICATIONS By now, everybody should be comfortable using form controls, their properties, along with methods and events of the form class. In this unit, we discuss creating

More information

VB.NET Programs. ADO.NET (insert, update, view records)

VB.NET Programs. ADO.NET (insert, update, view records) ADO.NET (insert, update, view records) VB.NET Programs Database: Student Table : Studtab (adno, name, age, place) Controls: DataGridView, Insert button, View button, Update button, TextBox1 (for Admission

More information

VARIABLES. 1. STRINGS Data with letters and/or characters 2. INTEGERS Numbers without decimals 3. FLOATING POINT NUMBERS Numbers with decimals

VARIABLES. 1. STRINGS Data with letters and/or characters 2. INTEGERS Numbers without decimals 3. FLOATING POINT NUMBERS Numbers with decimals VARIABLES WHAT IS A VARIABLE? A variable is a storage location in the computer s memory, used for holding information while the program is running. The information that is stored in a variable may change,

More information

LAMPIRAN. Universitas Sumatera Utara

LAMPIRAN. Universitas Sumatera Utara 61 LAMPIRAN 61 Listing Program Form 1 ( Barang ) Dim CnSuzuya As ADODB.Connection Dim CommBar As ADODB.Command Dim rsbar As ADODB.Recordset Dim StrSql As String Dim psn As Byte Private Sub Form_Load()

More information

Universitas Sumatera Utara

Universitas Sumatera Utara LAMPIRAN Listing Program FormUtama.vb Public Class FormUtama Dim uchome As UcHome Dim ucconnection As UcConnection Dim ucbook As UcBook Dim ucanggota As UcAnggota Dim ucpeminjaman As UcPeminjaman Dim ucpengembalian

More information

ภาคผนวก ก. Source Code

ภาคผนวก ก. Source Code ภาคผนวก ภาคผนวก ก. Source Code 154 155 Source Code ช อ Empbook Option Explicit On Option Strict On Imports System.data Imports System.Data.OleDb Public Class Empbook Dim Book_status As Integer = 1 'ęğŀşľłŀăăő

More information

Herefordshire College of Technology Centre Edexcel BTEC Level 3 Extended Diploma in Information Technology (Assignment 1 of 3)

Herefordshire College of Technology Centre Edexcel BTEC Level 3 Extended Diploma in Information Technology (Assignment 1 of 3) Student: Candidate Number: Assessor: Len Shand Herefordshire College of Technology Centre 24150 Edexcel BTEC Level 3 Extended Diploma in Information Technology (Assignment 1 of 3) Course: Unit: Title:

More information

Unit 3. Lesson Designing User Interface-2. TreeView Control. TreeView Contol

Unit 3. Lesson Designing User Interface-2. TreeView Control. TreeView Contol Designing User Interface-2 Unit 3 Designing User Interface-2 Lesson 3.1-3 TreeView Control A TreeView control is designed to present a list in a hierarchical structure. It is similar to a directory listing.

More information

Lab 3 The High-Low Game

Lab 3 The High-Low Game Lab 3 The High-Low Game LAB GOALS To develop a simple windows-based game named High-Low using VB.Net. You will use: Buttons, Textboxes, Labels, Dim, integer, arithmetic operations, conditionals [if-then-else],

More information

LAMPIRAN A: Listing Program

LAMPIRAN A: Listing Program 67 1. Form Menu Utama LAMPIRAN A: Listing Program Public Class MScreen Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me.Hide() Form1.Show()

More information

Data Access Standards. ODBC, OLE DB, and ADO Introduction. History of ODBC. History of ODBC 4/24/2016

Data Access Standards. ODBC, OLE DB, and ADO Introduction. History of ODBC. History of ODBC 4/24/2016 Data Access Standards ODBC, OLE DB, and ADO Introduction I Gede Made Karma The reasons for ODBC, OLE DB, and ADO are to provide a standardized method and API for accessing and manipulating Data from different

More information

'The following GUID is for the ID of the typelib if this project is exposed to COM <Assembly: Guid("8b a5-46bb-a6a9-87b4949d1f4c")>

'The following GUID is for the ID of the typelib if this project is exposed to COM <Assembly: Guid(8b a5-46bb-a6a9-87b4949d1f4c)> LAMPIRAN A : LISTING PROGRAM Imports System Imports System.Reflection Imports System.Runtime.InteropServices ' General Information about an assembly is controlled through the following ' set of attributes.

More information

DRAWING AND MOVING IMAGES

DRAWING AND MOVING IMAGES DRAWING AND MOVING IMAGES Moving images and shapes in a Visual Basic application simply requires the user of a Timer that changes the x- and y-positions every time the Timer ticks. In our first example,

More information

How to work with data sources and datasets

How to work with data sources and datasets Chapter 14 How to work with data sources and datasets Objectives Applied Use a data source to get the data that an application requires. Use a DataGridView control to present the data that s retrieved

More information

超音波モータ制御プログラムの作成 (v1.2.1)

超音波モータ制御プログラムの作成 (v1.2.1) 超音波モータ制御プログラムの作成 (v1.2.1) 2008 年 11 月 28 日 Masaaki MATSUO 構成機器 モータ本体 : フコク ロータリーエンコーダー内蔵型超音波モータ USB-60E モータ制御部 : フコク 位置決制御ドライバ DCONT-3-60 (SD13) コントローラ : Interface 2 軸絶縁パルスモーションコントローラ ( 直線補間エンコーダ入力 5V)

More information

Lecture 10 OOP and VB.Net

Lecture 10 OOP and VB.Net Lecture 10 OOP and VB.Net Pillars of OOP Objects and Classes Encapsulation Inheritance Polymorphism Abstraction Classes A class is a template for an object. An object will have attributes and properties.

More information

How to Validate DataGridView Input

How to Validate DataGridView Input How to Validate DataGridView Input This example explains how to use DR.net to set validation criteria for a DataGridView control on a Visual Studio.NET form. Why You Should Use This To add extensible and

More information

WEEK 1. Event: Tick: Occurs when the specified timer interval has elapsed and the timer is enabled.

WEEK 1. Event: Tick: Occurs when the specified timer interval has elapsed and the timer is enabled. WEEK 1 Timer: A Timer is used to raise an event at user-defined intervals. It is optimized for use in Windows Forms applications. Timer is used to control and manage events that are time related. For example:

More information

IOS Plus Trade - Web Services Version 4 Walkthrough

IOS Plus Trade - Web Services Version 4 Walkthrough IOS Plus Trade - Web Services Version 4 Walkthrough Visual Basic 2008 sample to retrieve IOS Plus Trade information The purpose of this walkthrough is to build the following Windows Forms Application that

More information

Member Management System

Member Management System Member Management System These codes are provided ONLY for reference / Help developers. And also SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUERMENT FOR THE AWARD OF BACHELOR OF COMPUTER APPLICATION (BCA)

More information

IRESS Depth - Web Services Version 4 Walkthrough Visual Basic 2008 sample to retrieve IRESS Depth information

IRESS Depth - Web Services Version 4 Walkthrough Visual Basic 2008 sample to retrieve IRESS Depth information IRESS Depth - Web Services Version 4 Walkthrough Visual Basic 2008 sample to retrieve IRESS Depth information The purpose of this walkthrough is to build the following Windows Forms Application that will

More information

Working with Printers

Working with Printers Chapter 17 Working with Printers After completing this chapter, you will be able to: Print graphics from a Microsoft Visual Basic program. Print text from a Visual Basic program. Print multipage documents.

More information

LISTING PROGRAM. Form Splash

LISTING PROGRAM. Form Splash LISTING PROGRAM Form Splash Private Sub Form_Load() lblversion.caption = "Version " & App.Major & "." & App.Minor & "." & App.Revision lblproductname.caption = App.Title lblcopyright.caption = App.LegalCopyright

More information

Programming with Visual Studio Higher (v. 2013)

Programming with Visual Studio Higher (v. 2013) Programming with Visual Studio Higher (v. 2013) Contents/Requirements Checklist Multiple selection: using ifs & case While Loops Using arrays Filling arrays Displaying array contents Types of variables:

More information

LISTING PROGRAM. frmmenu.vb. frmlogin.vb. Universitas Sumatera Utara. Public Class frmmenu

LISTING PROGRAM. frmmenu.vb. frmlogin.vb. Universitas Sumatera Utara. Public Class frmmenu LISTING PROGRAM frmmenu.vb Public Class frmmenu Private Sub QuitToolStripMenuItem_Click(ByVal sender As QuitToolStripMenuItem.Click Close() Private Sub OtoritasToolStripMenuItem_Click(ByVal sender As OtoritasToolStripMenuItem.Click

More information

Déclaration du module

Déclaration du module Déclaration du module Imports System.IO Module ModuleStagiaires Public Structure Stagiaire Private m_code As Long Private m_nom As String Private m_prenom As String Public Property code() As Long Get Return

More information

Building Datacentric Applications

Building Datacentric Applications Chapter 4 Building Datacentric Applications In this chapter: Application: Table Adapters and the BindingSource Class Application: Smart Tags for Data. Application: Parameterized Queries Application: Object

More information

Serial-out Color Sensor. Overview. Features

Serial-out Color Sensor. Overview. Features Visit us @ www.thearyatechnologies.com Email: aryaprotech@gmail.com / info@thearyatechnologies.com Contact us@ 0253-2512131 Serial-out Color Sensor Overview Color sensor identifies primary colors (Red,

More information

Apéndice E Código de software de ayuda en Visual Basic 2005 Public Class Form1

Apéndice E Código de software de ayuda en Visual Basic 2005 Public Class Form1 Apéndice E Código de software de ayuda en Visual Basic 2005 Public Class Form1 Dim checkcont As Integer = 0, foto = 0 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

More information

A Complete Tutorial for Beginners LIEW VOON KIONG

A Complete Tutorial for Beginners LIEW VOON KIONG I A Complete Tutorial for Beginners LIEW VOON KIONG Disclaimer II Visual Basic 2008 Made Easy- A complete tutorial for beginners is an independent publication and is not affiliated with, nor has it been

More information

COPYRIGHTED MATERIAL. Taking Web Services for a Test Drive. Chapter 1. What s a Web Service?

COPYRIGHTED MATERIAL. Taking Web Services for a Test Drive. Chapter 1. What s a Web Service? Chapter 1 Taking Web Services for a Test Drive What s a Web Service? Understanding Operations That Are Well Suited for Web Services Retrieving Weather Information Using a Web Service 101 Retrieving Stock

More information

VISUAL BASIC 2005 EXPRESS: NOW PLAYING

VISUAL BASIC 2005 EXPRESS: NOW PLAYING VISUAL BASIC 2005 EXPRESS: NOW PLAYING by Wallace Wang San Francisco ADVANCED DATA STRUCTURES: QUEUES, STACKS, AND HASH TABLES Using a Queue To provide greater flexibility in storing information, Visual

More information

: CREATING WEB BASED APPLICATIONS FOR INSTRUMENT DATA TRANSFER USING VISUAL STUDIO.NET

: CREATING WEB BASED APPLICATIONS FOR INSTRUMENT DATA TRANSFER USING VISUAL STUDIO.NET 2006-938: CREATING WEB BASED APPLICATIONS FOR INSTRUMENT DATA TRANSFER USING VISUAL STUDIO.NET David Hergert, Miami University American Society for Engineering Education, 2006 Page 11.371.1 Creating Web

More information

Unit 4. Lesson 4.1. Managing Data. Data types. Introduction. Data type. Visual Basic 2008 Data types

Unit 4. Lesson 4.1. Managing Data. Data types. Introduction. Data type. Visual Basic 2008 Data types Managing Data Unit 4 Managing Data Introduction Lesson 4.1 Data types We come across many types of information and data in our daily life. For example, we need to handle data such as name, address, money,

More information

Imports System.Data.SqlClient. Public Class Phonebook

Imports System.Data.SqlClient. Public Class Phonebook Imports System.Data.SqlClient Public Class Phonebook Dim vbdatabasedataset As New vbdatabasedataset() Dim PhonebookTableAdapter As New vbdatabasedatasettableadapters.phonebooktableadapter() Dim selection

More information

Tutorial 03 understanding controls : buttons, text boxes

Tutorial 03 understanding controls : buttons, text boxes Learning VB.Net Tutorial 03 understanding controls : buttons, text boxes Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple

More information

Visual Basic 2008 The programming part

Visual Basic 2008 The programming part Visual Basic 2008 The programming part Code Computer applications are built by giving instructions to the computer. In programming, the instructions are called statements, and all of the statements that

More information

Lab 4: Adding a Windows User-Interface

Lab 4: Adding a Windows User-Interface Lab 4: Adding a Windows User-Interface In this lab, you will cover the following topics: Creating a Form for use with Investment objects Writing event-handler code to interact with Investment objects Using

More information

ADO.NET 2.0. database programming with

ADO.NET 2.0. database programming with TRAINING & REFERENCE murach s ADO.NET 2.0 database programming with (Chapter 3) VB 2005 Thanks for downloading this chapter from Murach s ADO.NET 2.0 Database Programming with VB 2005. We hope it will

More information

My first game. 'function which adds objects with bug tag to bugarray array. Saturday, November 23, :06 AM

My first game. 'function which adds objects with bug tag to bugarray array. Saturday, November 23, :06 AM My first game Saturday, November 23, 2013 5:06 AM Public Class Form1 Dim moveright As Boolean = False Dim moveup As Boolean = False Dim moveleft As Boolean = False Dim movedown As Boolean = False Dim score

More information

Updated: Saturday, November 29, 2014 Page 1

Updated: Saturday, November 29, 2014 Page 1 ' Copyright 2013 Safe T Services - All Rights Reserved '=========================================================================================== 'Changed by Change Date Change Tag ' Description of Change

More information

Examples. Products. W informs Controls > Products > Navigation Bar > Examples. This topic provides how -to examples, grouped by features.

Examples. Products. W informs Controls > Products > Navigation Bar > Examples. This topic provides how -to examples, grouped by features. Examples 3564 W informs Controls > Products > Navigation Bar > Examples This topic provides how -to examples, grouped by features. Examples Layout How to: Create a NavBar Control in Code How to: Activate

More information

MapWindow Plug-in Development

MapWindow Plug-in Development MapWindow Plug-in Development Sample Project: Simple Path Analyzer Plug-in A step-by-step guide to creating a custom MapWindow Plug-in using the IPlugin interface by Allen Anselmo shade@turbonet.com Introduction

More information

DAFTAR PUSTAKA. Bojic, Paul, 2008, Business Information System. Pearson Education Ltd., England

DAFTAR PUSTAKA. Bojic, Paul, 2008, Business Information System. Pearson Education Ltd., England DAFTAR PUSTAKA Bojic, Paul, 2008, Business Information System. Pearson Education Ltd., England Elib.unikom.ac.id, SQL Server, 27 April 2014. Jogiyanto. 2005. Analisis & Desain Sistem Informasi : Pendekatan

More information

LAMPIRAN A: Listing Program

LAMPIRAN A: Listing Program 78 LAMPIRAN A: Listing Program 1. Form Login Public Class FrmLogin Public user As String Private Sub CmdLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdLogin.Click Dim

More information

Lab 6: Making a program persistent

Lab 6: Making a program persistent Lab 6: Making a program persistent In this lab, you will cover the following topics: Using the windows registry to make parts of the user interface sticky Using serialization to save application data in

More information

ComponentOne. DataObjects for.net

ComponentOne. DataObjects for.net ComponentOne DataObjects for.net ComponentOne, a division of GrapeCity 201 South Highland Avenue, Third Floor Pittsburgh, PA 15206 USA Website: http://www.componentone.com Sales: sales@componentone.com

More information

A Second Visual BASIC Application : Greetings

A Second Visual BASIC Application : Greetings The Greetings Program A Second Visual BASIC Application : Greetings The following instructions take you through the steps to create a simple application. A greeting is displayed in one of four different

More information