LAMPIRAN. Universitas Sumatera Utara

Size: px
Start display at page:

Download "LAMPIRAN. Universitas Sumatera Utara"

Transcription

1 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 As OleDbDataReader Public Record As New BindingSource Public lokasidata As String Public Cari As OleDbDataReader Public Sub konek() lokasidata = "Provider = Microsoft.ACE.OLEDB.12.0;Data Source=" & Application.StartupPath & "\db_psbhkbp1.accdb" conn = New OleDbConnection(lokasidata) If conn.state = ConnectionState.Closed Then conn.open() Else conn.close() conn.open() End Module 2. Form Login Imports System.Data.OleDb Public Class Form1 Dim CMD As New OleDbCommand Private Sub Button1_Click(ByVal sender As Button1.Click CMD = New OleDbCommand("Select * From tbl_login where Pengguna = '" & TextBox1.Text & "' And Kata_Sandi = '" & TextBox2.Text & "'", conn) RD = CMD.ExecuteReader RD.Read() If RD.HasRows Then Me.Hide() Menu_Utama.Show() Else MsgBox("Login Gagal")

2 Private Sub login_load(byval sender As MyBase.Load Private Sub Button2_Click(ByVal sender As Button2.Click End End Class 3. Menu Utama Public Class Menu_Utama Private Sub Button1_Click(ByVal sender As Button1.Click FrmnilaiUN.Show() Private Sub Button2_Click(ByVal sender As Button2.Click Frmdataayah.Show() Private Sub Button3_Click(ByVal sender As Button3.Click Frmpendaftar.Show() Private Sub Button4_Click(ByVal sender As Button4.Click Frmdataibu.Show() Private Sub Button5_Click(ByVal sender As Button5.Click Me.Close() Frmdatawali.Show()

3 Private Sub Button6_Click(ByVal sender As Button6.Click Frmdatatambahan.Show() Private Sub Timer1_Tick_1(ByVal sender As Timer1.Tick 'lbl12jam.text = Format(Now, "hh:mm:ss:tt") lbl24jam.text = Format(Now, "H:mm:ss") lbltanggal.text = Format(Now, "dddd,dd-mmmmyyyy") Private Sub Button8_Click(ByVal sender As Button8.Click End Private Sub Button9_Click(ByVal sender As Button9.Click Frmpengaturan.Show() Private Sub Button7_Click(ByVal sender As Button7.Click Frmlaporan.Show() Private Sub Button10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Frmpengaturan.Show() End Class 4. Form Pendaftar 5. Form Data Ayah Imports System.Data.OleDb Public Class Frmdataayah Private Sub jalankansql(byval sql As String) Dim objcmd As New System.Data.OleDb.OleDbCommand

4 Try objcmd.connection = conn objcmd.commandtype = CommandType.Text objcmd.commandtext = sql objcmd.executenonquery() objcmd.dispose() MsgBox("Data Sudah Disimpan", vbinformation) Catch ex As Exception MsgBox("Tidak Bisa Menyimpan data ke Database" & ex.message) End Try Dim dt As New DataTable Private Sub isigrid() konek() DA = New OleDb.OleDbDataAdapter("SELECT * FROM tbl_dataayah", conn) DS = New DataSet DS.Clear() DA.Fill(DS, "tbl_dataayah") DataGridView1.DataSource = DS.Tables("tbl_dataayah") DataGridView1.Enabled = True Sub bersih() txtnopen.text = "" txtnama.text = "" txttl.text = "" dtptl.text = "" cmbkw.text = "" cmbpendidikan.text = "" cmbagama.text = "" dtptl.text = "" txtnohp.text = "" cmbkerja.text = "" txtpenghasilan.text = "" txtalamat.text = "" Private Sub isitextbox() Dim i As Integer i = DataGridView1.CurrentRow.Index 'Databaru = False txtnopen.text = DataGridView1.Item(0, i).value txtnama.text = DataGridView1.Item(1, i).value txttl.text = DataGridView1.Item(2, i).value dtptl.text = DataGridView1.Item(3, i).value cmbkw.text = DataGridView1.Item(4, i).value

5 cmbpendidikan.text = DataGridView1.Item(5, i).value cmbagama.text = DataGridView1.Item(6, i).value txtnohp.text = DataGridView1.Item(7, i).value cmbkerja.text = DataGridView1.Item(8, i).value txtpenghasilan.text = DataGridView1.Item(9, i).value txtalamat.text = DataGridView1.Item(10, i).value Private Sub Frmdataayah_Load(ByVal sender As MyBase.Load Call isigrid() Private Sub btnsimpan_click(byval sender As btnsimpan.click Dim simpan As String simpan = "INSERT INTO tbl_dataayah VALUES ('" & txtnopen.text & "','" & txtnama.text & _ "','" & txttl.text & "','" & dtptl.text & "','" & cmbkw.text & _ "','" & cmbpendidikan.text & "','" & cmbagama.text & "','" & txtnohp.text & _ "','" & cmbkerja.text & "','" & txtpenghasilan.text & "','" & txtalamat.text & "')" jalankansql(simpan) isigrid() Private Sub txtnama_keydown(byval sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtnama.keydown If e.keycode = Keys.Enter Then ' conn.open() CMD = New OleDbCommand("select * from tbl_dataayah where Nama_Ayah= '" & txtnama.text & "'", conn) RD = CMD.ExecuteReader RD.Read() If RD.HasRows Then txtnopen.text = RD(1).ToString txtnama.text = RD(2).ToString txttl.text = RD(3).ToString dtptl.text = RD(4).ToString

6 cmbkw.text = RD(5).ToString cmbpendidikan.text = RD(6).ToString cmbagama.text = RD(7).ToString txtnohp.text = RD(8).ToString cmbkerja.text = RD(9).ToString txtpenghasilan.text = RD(10).ToString txtalamat.text = RD(11).ToString Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick Call isigrid() Private Sub btnhapus_click(byval sender As btnhapus.click CMD = New OleDbCommand("DELETE FROM tbl_dataayah WHERE No_Pendaftaran = " & Val(txtnopen.Text), conn) CMD.ExecuteNonQuery() MsgBox("data berhasil dihapus") isigrid() Private Sub btnbatal_click(byval sender As btnbatal.click Private Sub btnberikutnya_click(byval sender As btnberikutnya.click Frmdataibu.Show() Me.Close() Private Sub btnmenu_click(byval sender As btnmenu.click Menu_Utama.Show() Me.Close()

7 Private Sub btntambah_click(byval sender As btntambah.click End Class 6. Form Data Ibu Imports System.Data.OleDb Public Class Frmdataibu Private Sub jalankansql(byval sql As String) Dim objcmd As New System.Data.OleDb.OleDbCommand Try objcmd.connection = conn objcmd.commandtype = CommandType.Text objcmd.commandtext = sql objcmd.executenonquery() objcmd.dispose() MsgBox("Data Sudah Disimpan", vbinformation) Catch ex As Exception MsgBox("Tidak Bisa Menyimpan data ke Database" & ex.message) End Try Dim dt As New DataTable Private Sub isigrid() konek() DA = New OleDb.OleDbDataAdapter("SELECT * FROM tbl_dataibu", conn) DS = New DataSet DS.Clear() DA.Fill(DS, "tbl_dataibu") DataGridView1.DataSource = DS.Tables("tbl_dataibu") DataGridView1.Enabled = True Sub bersih() txtnopen.text = "" txtnama.text = "" txttl.text = "" dtptl.text = "" cmbkw.text = "" cmbpendidikan.text = "" cmbagama.text = ""

8 dtptl.text = "" txtnohp.text = "" cmbkerja.text = "" txtpenghasilan.text = "" txtalamat.text = "" Private Sub isitextbox() Dim i As Integer i = DataGridView1.CurrentRow.Index 'Databaru = False txtnopen.text = DataGridView1.Item(0, i).value txtnama.text = DataGridView1.Item(1, i).value txttl.text = DataGridView1.Item(2, i).value dtptl.text = DataGridView1.Item(3, i).value cmbkw.text = DataGridView1.Item(4, i).value cmbpendidikan.text = DataGridView1.Item(5, i).value cmbagama.text = DataGridView1.Item(6, i).value txtnohp.text = DataGridView1.Item(7, i).value cmbkerja.text = DataGridView1.Item(8, i).value txtpenghasilan.text = DataGridView1.Item(9, i).value txtalamat.text = DataGridView1.Item(10, i).value Private Sub Frmdataibu_Load(ByVal sender As MyBase.Load Call isigrid() Private Sub btnsimpan_click(byval sender As btnsimpan.click Dim simpan As String simpan = "INSERT INTO tbl_dataibu VALUES ('" & txtnopen.text & "','" & txtnama.text & _ "','" & txttl.text & "','" & dtptl.text & "','" & cmbkw.text & _ "','" & cmbpendidikan.text & "','" & cmbagama.text & "','" & txtnohp.text & _ "','" & cmbkerja.text & "','" & txtpenghasilan.text & "','" & txtalamat.text & "')" jalankansql(simpan) isigrid() Private Sub txtnama_keydown(byval sender As System.Object, ByVal e As

9 System.Windows.Forms.KeyEventArgs) Handles txtnama.keydown If e.keycode = Keys.Enter Then ' conn.open() CMD = New OleDbCommand("select * from tbl_dataibu where Nama_Ibu= '" & txtnama.text & "'", conn) RD = CMD.ExecuteReader RD.Read() If RD.HasRows Then txtnopen.text = RD(1).ToString txtnama.text = RD(2).ToString txttl.text = RD(3).ToString dtptl.text = RD(4).ToString cmbkw.text = RD(5).ToString cmbpendidikan.text = RD(6).ToString cmbagama.text = RD(7).ToString txtnohp.text = RD(8).ToString cmbkerja.text = RD(9).ToString txtpenghasilan.text = RD(10).ToString txtalamat.text = RD(11).ToString Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick Call isitextbox() Private Sub btnhapus_click(byval sender As btnhapus.click CMD = New OleDbCommand("DELETE FROM tbl_dataibu WHERE No_Pendaftaran = " & Val(txtnopen.Text), conn) CMD.ExecuteNonQuery() MsgBox("data berhasil dihapus") isigrid() Private Sub btnbatal_click(byval sender As btnbatal.click

10 Private Sub Button1_Click(ByVal sender As Button1.Click Menu_Utama.Show() Me.Close() Private Sub btnberikutnya_click(byval sender As btnberikutnya.click Frmdatawali.Show() Me.Close() Private Sub btntambah_click(byval sender As btntambah.click End Class 7. Form Data Wali Imports System.Data.OleDb Public Class Frmdatawali Private Sub jalankansql(byval sql As String) Dim objcmd As New System.Data.OleDb.OleDbCommand Try objcmd.connection = conn objcmd.commandtype = CommandType.Text objcmd.commandtext = sql objcmd.executenonquery() objcmd.dispose() MsgBox("Data Sudah Disimpan", vbinformation) Catch ex As Exception MsgBox("Tidak Bisa Menyimpan data ke Database" & ex.message) End Try Dim dt As New DataTable Private Sub isigrid() konek() DA = New OleDb.OleDbDataAdapter("SELECT * FROM tbl_datawali", conn) DS = New DataSet

11 DS.Clear() DA.Fill(DS, "tbl_datawali") DataGridView1.DataSource = DS.Tables("tbl_datawali") DataGridView1.Enabled = True Sub bersih() txtnopen.text = "" txtnama.text = "" txttl.text = "" dtptl.text = "" cmbkw.text = "" cmbpendidikan.text = "" cmbagama.text = "" dtptl.text = "" txtnohp.text = "" cmbkerja.text = "" txtpenghasilan.text = "" txthub.text = "" txtalamat.text = "" Private Sub isitextbox() Dim i As Integer i = DataGridView1.CurrentRow.Index 'Databaru = False txtnopen.text = DataGridView1.Item(0, i).value txtnama.text = DataGridView1.Item(1, i).value txttl.text = DataGridView1.Item(2, i).value dtptl.text = DataGridView1.Item(3, i).value cmbkw.text = DataGridView1.Item(4, i).value cmbpendidikan.text = DataGridView1.Item(5, i).value cmbagama.text = DataGridView1.Item(6, i).value txtnohp.text = DataGridView1.Item(7, i).value cmbkerja.text = DataGridView1.Item(8, i).value txtpenghasilan.text = DataGridView1.Item(9, i).value txthub.text = DataGridView1.Item(10, i).value txtalamat.text = DataGridView1.Item(11, i).value Private Sub Frmdatawali_Load(ByVal sender As MyBase.Load Call isigrid() Private Sub txtnama_keydown(byval sender As System.Object, ByVal e As

12 System.Windows.Forms.KeyEventArgs) Handles txtnama.keydown If e.keycode = Keys.Enter Then ' conn.open() CMD = New OleDbCommand("select * from tbl_datawali where Nama_Wali = '" & txtnama.text & "'", conn) RD = CMD.ExecuteReader RD.Read() If RD.HasRows Then txtnopen.text = RD(1).ToString txtnama.text = RD(2).ToString txttl.text = RD(3).ToString dtptl.text = RD(4).ToString cmbkw.text = RD(5).ToString cmbpendidikan.text = RD(6).ToString cmbagama.text = RD(7).ToString txtnohp.text = RD(8).ToString cmbkerja.text = RD(9).ToString txtpenghasilan.text = RD(10).ToString txthub.text = RD(11).ToString txtalamat.text = RD(12).ToString Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick Call isigrid() Private Sub btnsimpan_click(byval sender As btnsimpan.click Dim simpan As String simpan = "INSERT INTO tbl_datawali VALUES ('" & txtnopen.text & "','" & txtnama.text & _ "','" & txttl.text & "','" & dtptl.text & "','" & cmbkw.text & _ "','" & cmbpendidikan.text & "','" & cmbagama.text & "','" & txtnohp.text & _ "','" & cmbkerja.text & "','" & txtpenghasilan.text & "','" & txthub.text & _ "','" & txtalamat.text & "')" jalankansql(simpan) isigrid()

13 Private Sub btnhapus_click(byval sender As btnhapus.click CMD = New OleDbCommand("DELETE FROM tbl_datawali WHERE No_Pendaftaran = " & Val(txtnopen.Text), conn) CMD.ExecuteNonQuery() MsgBox("data berhasil dihapus") isigrid() Private Sub btnbatal_click(byval sender As btnbatal.click Private Sub Button1_Click(ByVal sender As Button1.Click Me.Close() Menu_Utama.Show() Private Sub btnberikutnya_click(byval sender As btnberikutnya.click Frmdatatambahan.Show() Me.Close() Private Sub btntambah_click(byval sender As btntambah.click End Class 8. Form Data Tambahan Imports System.Data.OleDb Public Class Frmdatatambahan Private Sub jalankansql(byval sql As String) Dim objcmd As New System.Data.OleDb.OleDbCommand

14 Try objcmd.connection = conn objcmd.commandtype = CommandType.Text objcmd.commandtext = sql objcmd.executenonquery() objcmd.dispose() MsgBox("Data Sudah Disimpan", vbinformation) Catch ex As Exception MsgBox("Tidak Bisa Menyimpan data ke Database" & ex.message) End Try Dim dt As New DataTable Private Sub isigrid() konek() DA = New OleDb.OleDbDataAdapter("SELECT * FROM tbl_datatambahan", conn) DS = New DataSet DS.Clear() DA.Fill(DS, "tbl_datatambahan") DataGridView1.DataSource = DS.Tables("tbl_datatambahan") DataGridView1.Enabled = True Sub bersih() txtnopen.text = "" txtnoija.text = "" dtptl.text = "" txtnosk.text = "" txtasal.text = "" txtnohp.text = "" txtjarak.text = "" txtsakit.text = "" txtkelainan.text = "" txttinggi.text = "" txtberat.text = "" Private Sub isitextbox() Dim i As Integer i = DataGridView1.CurrentRow.Index 'Databaru = False txtnopen.text = DataGridView1.Item(0, i).value txtnoija.text = DataGridView1.Item(1, i).value dtptl.text = DataGridView1.Item(2, i).value txtnosk.text = DataGridView1.Item(3, i).value txtasal.text = DataGridView1.Item(4, i).value txtnohp.text = DataGridView1.Item(5, i).value txtjarak.text = DataGridView1.Item(6, i).value

15 txtsakit.text = DataGridView1.Item(7, i).value txtkelainan.text = DataGridView1.Item(8, i).value txttinggi.text = DataGridView1.Item(9, i).value txtberat.text = DataGridView1.Item(10, i).value Private Sub Frmdatatambahan_Load(ByVal sender As MyBase.Load Call isigrid() Private Sub Button1_Click(ByVal sender As Button1.Click Me.Close() Menu_Utama.Show() Private Sub txtnoija KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtnoija.keydown If e.keycode = Keys.Enter Then ' conn.open() CMD = New OleDbCommand("select * from tbl_datatambahan where No_Ijazah=' " & txtnoija.text & "'", conn) RD = CMD.ExecuteReader RD.Read() If RD.HasRows Then txtnopen.text = RD(1).ToString txtnoija.text = RD(2).ToString dtptl.text = RD(3).ToString txtnosk.text = RD(4).ToString txtasal.text = RD(5).ToString txtnohp.text = RD(6).ToString txtjarak.text = RD(7).ToString txtsakit.text = RD(8).ToString txtkelainan.text = RD(9).ToString txttinggi.text = RD(10).ToString txtberat.text = RD(11).ToString Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As

16 System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick Call isitextbox() Private Sub btnsimpan_click(byval sender As btnsimpan.click Dim simpan As String simpan = "INSERT INTO tbl_datatambahan VALUES ('" & txtnopen.text & "','" & txtnoija.text & _ "','" & dtptl.text & "','" & txtnosk.text & "','" & txtasal.text & "','" & txtnohp.text & _ "','" & txtjarak.text & "','" & txtsakit.text & "','" & txtkelainan.text & "','" & txttinggi.text & _ "','" & txtberat.text & "')" jalankansql(simpan) isigrid() Private Sub btnhapus_click(byval sender As btnhapus.click CMD = New OleDbCommand("DELETE FROM tbl_datatambahan WHERE No_Pendaftaran =" & Val(txtnopen.Text), conn) CMD.ExecuteNonQuery() MsgBox("data berhasil dihapus") isigrid() Private Sub btnubah_click(byval sender As btnbatal.click Private Sub btntambah_click(byval sender As btntambah.click Private Sub btnberikutnya_click(byval sender As btnberikutnya.click

17 Me.Close() FrmnilaiUN.Show() End Class 9. Form Data Nilai UN Imports System.Data.OleDb Public Class FrmnilaiUN Private Sub jalankansql(byval sql As String) Dim objcmd As New System.Data.OleDb.OleDbCommand Try objcmd.connection = conn objcmd.commandtype = CommandType.Text objcmd.commandtext = sql objcmd.executenonquery() objcmd.dispose() MsgBox("Data Sudah Disimpan", vbinformation) Catch ex As Exception MsgBox("Tidak Bisa Menyimpan data ke Database" & ex.message) End Try Dim dt As New DataTable Private Sub isigrid() konek() DA = New OleDb.OleDbDataAdapter("SELECT * FROM tbl_datanilaiun", conn) DS = New DataSet DS.Clear() DA.Fill(DS, "tbl_datanilaiun") DataGridView1.DataSource = DS.Tables("tbl_datanilaiUN") DataGridView1.Enabled = True Sub bersih() TextBox1.Text = "" TextBox2.Text = "" TextBox3.Text = "" TextBox4.Text = "" TextBox5.Text = "" TextBox6.Text = "" TextBox7.Text = "" Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Me.Close()

18 Menu_Utama.Show() Private Sub Button2_Click(ByVal sender As Button2.Click TextBox6.Text = Val(TextBox2.Text) + Val(TextBox3.Text) + Val(TextBox4.Text) + Val(TextBox5.Text) TextBox7.Text = (Val(TextBox2.Text) + Val(TextBox3.Text) + Val(TextBox4.Text) + Val(TextBox5.Text)) / 4 Private Sub isitextbox() Dim i As Integer i = DataGridView1.CurrentRow.Index 'Databaru = False TextBox1.Text = DataGridView1.Item(0, i).value TextBox2.Text = DataGridView1.Item(1, i).value TextBox3.Text = DataGridView1.Item(2, i).value TextBox4.Text = DataGridView1.Item(3, i).value TextBox5.Text = DataGridView1.Item(4, i).value TextBox6.Text = DataGridView1.Item(5, i).value TextBox7.Text = DataGridView1.Item(6, i).value Private Sub FrmnilaiUN_Load(ByVal sender As MyBase.Load Call isigrid() Private Sub Button6_Click(ByVal sender As Button6.Click Private Sub Button3_Click(ByVal sender As Button3.Click Dim simpan As String simpan = "INSERT INTO tbl_datanilaiun VALUES ('" & TextBox1.Text & "','" & TextBox2.Text & _ "','" & TextBox3.Text & "','" & TextBox4.Text & "','" & TextBox5.Text & "','" & TextBox6.Text & _ "','" & TextBox7.Text & "')" jalankansql(simpan)

19 isigrid() Private Sub Button_Click(ByVal sender As Button4.Click CMD = New OleDbCommand("DELETE FROM tbl_datanilaiun WHERE No_Pendaftaran =" & Val(TextBox1.Text), conn) CMD.ExecuteNonQuery() MsgBox("data berhasil dihapus") isigrid() Private Sub Button5_Click(ByVal sender As Button5.Click Dim simpan As String Dim Databaru As String If TextBox1.Text = "" Then Databaru = True Else Databaru = False Me.Cursor = Cursors.WaitCursor If Databaru Then simpan = "INSERT INTO tbl_datanilaiun(no_pendaftaran,nilai_bahasa_indonesia,n ilai_matematika,nilai_ipa,rayon,jumlah_nilai_un,ratarata_nilai_un) VALUES ('" & TextBox1.Text & _ "','" & TextBox2.Text & "','" & TextBox3.Text & "','" & TextBox4.Text & "','" & TextBox5.Text & "','" & TextBox6.Text & "','" & TextBox7.Text & "') " Else simpan = "UPDATE tbl_datanilaiun SET Nilai_Bahasa_Indonesia ='" & Val(TextBox2.Text) & "', Nilai_Matematika ='" & Val(TextBox3.Text) & "', Nilai_IPA ='" & Val(TextBox4.Text) & _ "', Rayon ='" & Val(TextBox5.Text) & "',Jumlah_Nilai_UN='" & Val(TextBox6.Text) & "',Rata_Nilai_UN='" & Val(TextBox7.Text) & "' WHERE No_Pendaftaran = " & Val(TextBox1.Text) & "" jalankansql(simpan) isigrid()

20 TextBox2.Focus() Me.Cursor = Cursors.Default Private Sub TextBox2_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox2.KeyDown If e.keycode = Keys.Enter Then ' conn.open() CMD = New OleDbCommand("select * from tbl_datanilaiun where Nilai_Bahasa_Indonesia= '" & TextBox2.Text & "'", conn) RD = CMD.ExecuteReader RD.Read() If RD.HasRows Then TextBox1.Text = RD(1).ToString TextBox2.Text = RD(2).ToString TextBox3.Text = RD(3).ToString TextBox4.Text = RD(4).ToString TextBox5.Text = RD(5).ToString TextBox6.Text = RD(6).ToString TextBox7.Text = RD(7).ToString Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick Call isitextbox() Private Sub Button1_Click_1(ByVal sender As Button1.Click Me.Close() Menu_Utama.Show() End Class 10. Form Pengaturan Imports System.Data.OleDb Public Class Frmpengaturan Dim CMD As New OleDbCommand

21 Private Sub Frmpengaturan_Load(ByVal sender As MyBase.Load Private Sub Button2_Click(ByVal sender As Button2.Click CMD = New OleDbCommand("Update tbl_login set Kata_Sandi = '" & TextBox4.Text & "' where Pengguna = '" & TextBox1.Text & "'", conn) RD = CMD.ExecuteReader RD.Read() If RD.HasRows Then Me.Hide() Menu_Utama.Show() Else MsgBox("Password berhasil diganti") End Class 11. Form Laporan Imports CrystalDecisions.CrystalReports.Engine Imports System.Data.OleDb Public Class Frmlaporan Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim a As New PSB Dim b As New Frmlaporan b.crdatapsb.reportsource = a b.showdialog() Private Sub Frmlaporan_Load_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Try

22 Dim rpt As New CrystalDecisions.CrystalReports.Engine.Report Document Dim str As String = "Microsoft.ACE.OLEDB.12.0;Data Source=" & Application.StartupPath & "\db_psbhkbp1.accdb""" rpt.load(str) CRDATAPSB.Refresh() CRDATAPSB.ReportSource = rpt CRDATAPSB.Show() CRDATAPSB.RefreshReport() Me.WindowState = FormWindowState.Maximized Catch ex As Exception End Try End Class \

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

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

Private Sub MenuUtamaToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Me.ShowDialog() End Sub LISTING PROGRAM Menu_Utama.vb Public Class FrmUtama Private Sub DataMovieToolStripMenuItem_Click(ByVal sender As DataMovieToolStripMenuItem.Click FrmMovie.ShowDialog() Private Sub DataPeminjamToolStripMenuItem_Click(ByVal

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

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

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

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

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

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

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

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

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

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

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

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

ก 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 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 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

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

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

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

ภาคผนวก ก. 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

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

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

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

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

ภาคผนวก ก การต ดต งโปรแกรม

ภาคผนวก ก การต ดต งโปรแกรม ภาคผนวก ภาคผนวก ก การต ดต งโปรแกรม โปรแกรม Visual Basic.Net ข นตอนการต ดต งโปรแกรม Visual Basic.Net (Visual Studio.net 2008) 1. ใส แผ นโปรแกรม Visual Studio.net 2008 ลงใน CD-Rom Drive 2. รอให โปรแกรมท

More information

1 string start = DateTime.Now.ToShortDateString(); 2 string end = DateTime.Now.AddDays(5).ToShortDateString(); 3 OleDbConnection conn2 =

1 string start = DateTime.Now.ToShortDateString(); 2 string end = DateTime.Now.AddDays(5).ToShortDateString(); 3 OleDbConnection conn2 = public partial class borrow : System.Web.UI.Page protected void Page_Load(object sender, EventArgs e) 1 string start = DateTime.Now.ToShortDateString(); 2 string end = DateTime.Now.AddDays(5).ToShortDateString();

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

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

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

بسم هللا الرحمن الرحيم المحاضرة السابعة مستوى ثالث علوم حاسوب برمجة مرئية 2 )عملي ) جامعة الجزيرة محافظة اب الجمهورية اليمنية النافذة الرئيسية

بسم هللا الرحمن الرحيم المحاضرة السابعة مستوى ثالث علوم حاسوب برمجة مرئية 2 )عملي ) جامعة الجزيرة محافظة اب الجمهورية اليمنية النافذة الرئيسية بسم هللا الرحمن الرحيم المحاضرة السابعة مستوى ثالث علوم حاسوب برمجة مرئية 2 )عملي ) جامعة الجزيرة محافظة اب الجمهورية اليمنية النافذة الرئيسية وتمتلك الشفرة البرمجية التالية : زر االقسام fr_dept fd = new

More information

Tutorial 5 Database. Adam Sek Keb Wira 12 A123 6 Amanah Tmn Mahkota

Tutorial 5 Database. Adam Sek Keb Wira 12 A123 6 Amanah Tmn Mahkota Task 1 Creating a database using Access 2010: Tutorial 5 Database 1. Using Microsoft Access create a database for; a. Name b. School c. Age d. Birth Cert No e. Year f. Address g. Date of birth 2. Type

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

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

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

STEP 1: CREATING THE DATABASE

STEP 1: CREATING THE DATABASE Date: 18/02/2013 Procedure: Creating a simple registration form in ASP.NET (Programming) Source: LINK Permalink: LINK Created by: HeelpBook Staff Document Version: 1.0 CREATING A SIMPLE REGISTRATION FORM

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

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

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

More information

عنوان مقاله : خواندن و نوشتن محتوای فایل های Excel بدون استفاده ازAutomation Excel تهیه وتنظیم کننده : مرجع تخصصی برنامه نویسان

عنوان مقاله : خواندن و نوشتن محتوای فایل های Excel بدون استفاده ازAutomation Excel تهیه وتنظیم کننده : مرجع تخصصی برنامه نویسان در این مقاله با دو روش از روشهای خواندن اطالعات از فایل های اکسل و نوشتن آنها در DataGridView بدون استفاده از ( Automation Excelبا استفاده از NPOI و( ADO.Net آشنا میشوید. راه اول : با استفاده از (xls)

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

LAMPIRAN LIST PROGRAM

LAMPIRAN LIST PROGRAM LAMPIRAN LIST PROGRAM 1. Modules Public conn As New ADODB.Connection Public rstb_pendekatan As ADODB.Recordset Public rstb_solusi As ADODB.Recordset Public rstb_alasan As ADODB.Recordset Public rstb_pilihan

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

Code: Write a Program for perform Money Conversion. Public Class Form1

Code: Write a Program for perform Money Conversion. Public Class Form1 Write a Program for perform Money Conversion. Code: Public Class Form1 Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click Dim a As Double a = TextBox1.Text

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

LAMPIRAN DAFTAR PUBLIKASI ILMIAH PENULIS. No Judul Nama Seminar Tempat Tahun 1 Pemanfaatan Fuzzy Logic Dalam menakar Prestasi

LAMPIRAN DAFTAR PUBLIKASI ILMIAH PENULIS. No Judul Nama Seminar Tempat Tahun 1 Pemanfaatan Fuzzy Logic Dalam menakar Prestasi LAMPIRAN DAFTAR PUBLIKASI ILMIAH PENULIS No Judul Nama Seminar Tempat Tahun 1 Pemanfaatan Fuzzy Logic Dalam menakar Prestasi Konferensi Nasional Pengembangan Siswa Sesuai Standar Teknologi Informasi Kompetensi

More information

System Analysis and Design

System Analysis and Design System Analysis and Design LAB RECORD-INFS -280/L Information Systems Department University of Nizwa, Sultanate of Oman Table of Contents Task. No: Title Page Nos. Date 1) VB Text box and Message Button

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

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

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

LISTING PROGRAM. 1. Form Menu Utama. Universitas Sumatera Utara

LISTING PROGRAM. 1. Form Menu Utama. Universitas Sumatera Utara LISTING PROGRAM 1. Form Menu Utama Dim LenTemp As Integer Dim SrtTemp As String Dim n As Integer Private Sub Form_Load() Call Tengah(Me) lhsysmenu = GetSystemMenu(Me.hwnd, False) lretval = RemoveMenu(lhSysMenu,

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

create database ABCD use ABCD create table bolumler ( bolumkodu int primary key, bolumadi varchar(20) )

create database ABCD use ABCD create table bolumler ( bolumkodu int primary key, bolumadi varchar(20) ) create database ABCD use ABCD create table bolumler ( bolumkodu int primary key, bolumadi varchar(20) ) insert into bolumler values(1,'elektrik') insert into bolumler values(2,'makina') insert into bolumler

More information

ITcertKing. The latest IT certification exam materials. IT Certification Guaranteed, The Easy Way!

ITcertKing.   The latest IT certification exam materials. IT Certification Guaranteed, The Easy Way! ITcertKing The latest IT certification exam materials http://www.itcertking.com IT Certification Guaranteed, The Easy Way! Exam : 70-561-VB Title : TS: MS.NET Framework 3.5, ADO.NET Application Development

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

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

PLATFORM TECHNOLOGY UNIT-4

PLATFORM TECHNOLOGY UNIT-4 VB.NET: Handling Exceptions Delegates and Events - Accessing Data ADO.NET Object Model-.NET Data Providers Direct Access to Data Accessing Data with Datasets. ADO.NET Object Model ADO.NET object model

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

Interacting with External Applications

Interacting with External Applications Interacting with External Applications DLLs - dynamic linked libraries: Libraries of compiled procedures/functions that applications link to at run time DLL can be updated independently of apps using them

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

Oracle Rdb Developer Tools for Visual Studio Developer s Guide, Release Copyright 2011 Oracle Corporation Corporation. All rights reserved.

Oracle Rdb Developer Tools for Visual Studio Developer s Guide, Release Copyright 2011 Oracle Corporation Corporation. All rights reserved. Oracle Rdb Developer Tools for Visual Studio Developer's Guide V7.3.2.1 May 2011 Oracle Rdb Developer Tools for Visual Studio Developer s Guide, Release 7.3-21 Copyright 2011 Oracle Corporation Corporation.

More information

Data Source. Application. Memory

Data Source. Application. Memory Lecture #14 Introduction Connecting to Database The term OLE DB refers to a set of Component Object Model (COM) interfaces that provide applications with uniform access to data stored in diverse information

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

32-bit Oracle Data Access Components (ODAC) with Oracle Developer Tools for Visual Studio

32-bit Oracle Data Access Components (ODAC) with Oracle Developer Tools for Visual Studio 32-bit Oracle Data Access Components (ODAC) with Oracle Developer Tools for Visual Studio 1 2 Conexiune - Oracle.ManagedDataAccess.Client... 3 using Oracle.ManagedDataAccess.Client;... public partial class

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

.NET Connector. (MS Windows)

.NET Connector. (MS Windows) tcaccess, Version 8.0 tcaccess.net documentation.net Connector (MS Windows) Last Review: 12/10/2010 12/10/2010 Page 1 tcaccess.net documentation tcaccess, Version 8.0 Table of contents 1. General...4 1.1

More information

Code: Week 13. Write a Program to perform Money Conversion. Public Class Form1

Code: Week 13. Write a Program to perform Money Conversion. Public Class Form1 Write a Program to perform Money Conversion. Week 13 Code: Public Class Form1 Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Dim a As Double a = TextBox1.Text If ComboBox1.SelectedItem

More information

2017/ st Sec Final revision Final revision

2017/ st Sec Final revision Final revision Q1)Put ( ) or (x): 1. We open channel of communication between the programme that is created in Visual basic Dot Net language and Excel file by using ADO.NET tools. ( ) 2. Variable of type ( OleDbConnection)

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

: 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

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

Source Code ช อ frmcar

Source Code ช อ frmcar 122 Source Code ช อ frmcar Imports System.Data Imports System.Data.SqlClient Imports System.Globalization Public Class frmcar Dim ds, ds1, dsc As New DataSet Dim hit As DataGridView.HitTestInfo Dim N As

More information

Accessing Databases 7/6/2017 EC512 1

Accessing Databases 7/6/2017 EC512 1 Accessing Databases 7/6/2017 EC512 1 Types Available Visual Studio 2017 does not ship with SQL Server Express. You can download and install the latest version. You can also use an Access database by installing

More information

Upgrading Distributed Applications

Upgrading Distributed Applications C2161587x.fm Page 435 Friday, November 16, 2001 9:08 AM Upgrading Distributed Applications Until now we haven t really talked about upgrading large-scale distributed applications. But building these types

More information

} } public void getir() { DataTable dt = vt.dtgetir("select* from stok order by stokadi");

} } public void getir() { DataTable dt = vt.dtgetir(select* from stok order by stokadi); Form1 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms;

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

Create a Windows Application that Reads- Writes PI Data via PI OLEDB. Page 1

Create a Windows Application that Reads- Writes PI Data via PI OLEDB. Page 1 Create a Windows Application that Reads- Writes PI Data via PI OLEDB Page 1 1.1 Create a Windows Application that Reads-Writes PI Data via PI OLEDB 1.1.1 Description The goal of this lab is to learn how

More information

フラクタル 1 ( ジュリア集合 ) 解説 : ジュリア集合 ( 自己平方フラクタル ) 入力パラメータの例 ( 小さな数値の変化で模様が大きく変化します. Ar や Ai の数値を少しずつ変化させて描画する. ) プログラムコード. 2010, AGU, M.

フラクタル 1 ( ジュリア集合 ) 解説 : ジュリア集合 ( 自己平方フラクタル ) 入力パラメータの例 ( 小さな数値の変化で模様が大きく変化します. Ar や Ai の数値を少しずつ変化させて描画する. ) プログラムコード. 2010, AGU, M. フラクタル 1 ( ジュリア集合 ) PictureBox 1 TextBox 1 TextBox 2 解説 : ジュリア集合 ( 自己平方フラクタル ) TextBox 3 複素平面 (= PictureBox1 ) 上の点 ( に対して, x, y) 初期値 ( 複素数 ) z x iy を決める. 0 k 1 z k 1 f ( z) z 2 k a 写像 ( 複素関数 ) (a : 複素定数

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 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

Oracle Rdb Developer Tools for Visual Studio Developer's Guide Release June 2015

Oracle Rdb Developer Tools for Visual Studio Developer's Guide Release June 2015 Oracle Rdb Developer Tools for Visual Studio Developer's Guide Release 7.3.4.0 June 2015 Oracle Rdb Data Provider for.net Developer's Guide, Release 7.3.4.0 Copyright 2011, 2015 Oracle and/or its affiliates.

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

The following are required to duplicate the process outlined in this document.

The following are required to duplicate the process outlined in this document. Technical Note ClientAce WPF Project Example 1. Introduction Traditional Windows forms are being replaced by Windows Presentation Foundation 1 (WPF) forms. WPF forms are fundamentally different and designed

More information

VB. Microsoft. MS.NET Framework 3.5 ADO.NET Application Development

VB. Microsoft. MS.NET Framework 3.5 ADO.NET Application Development Microsoft 70-561-VB MS.NET Framework 3.5 ADO.NET Application Development Download Full Version : http://killexams.com/pass4sure/exam-detail/70-561-vb B. Catch ex As System.Data.SqlClient.SqlException For

More information

ComponentOne. DataObjects for.net

ComponentOne. DataObjects for.net ComponentOne DataObjects for.net Copyright 1987-2012 GrapeCity, Inc. All rights reserved. ComponentOne, a division of GrapeCity 201 South Highland Avenue, Third Floor Pittsburgh, PA 15206 USA Internet:

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

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

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

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

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

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

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

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

C# winforms gridview

C# winforms gridview C# winforms gridview using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;

More information

Philadelphia University Faculty of Engineering

Philadelphia University Faculty of Engineering Philadelphia University Faculty of Engineering Marking Scheme Examination Paper BSc CE Advanced Programming Language (630521) Final Exam Second semester Date: 30/05/2012 Section 1 Weighting 40% of the

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

LifeLink Life Insurance System For ALMAO

LifeLink Life Insurance System For ALMAO LifeLink Life Insurance System For ALMAO R.M.N.P.B. Ratnayake BIT Registration Number: R004702 Index Number: 0047023 Supervisor s Name: Prasanna Weerakoon Submission Month: November Submission Year: 2017

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

Running the Altair SIMH from.net programs

Running the Altair SIMH from.net programs Running the Altair SIMH from.net programs The Altair SIMH simulator can emulate a wide range of computers and one of its very useful features is that it can emulate a machine running 50 to 100 times faster

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

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