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

Size: px
Start display at page:

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

Transcription

1 LISTING PROGRAM 1.Tampilan awal PublicClassmm PrivateSub InputDataGuruToolStripMenuItem_Click(sender AsObject, e AsEventArgs) Handles InputDataGuruToolStripMenuItem.Click guru.show() Me.Hide() EndSub PrivateSub InputDataSiswaToolStripMenuItem_Click(sender AsObject, e AsEventArgs) Handles InputDataSiswaToolStripMenuItem.Click murid.show() Me.Hide() EndSub PrivateSub InputDataAbsenToolStripMenuItem_Click(sender AsObject, e AsEventArgs) Handles InputDataAbsenToolStripMenuItem.Click absen.show() Me.Hide() EndSub PrivateSub KeluarToolStripMenuItem_Click(sender AsObject, e AsEventArgs) Handles KeluarToolStripMenuItem.Click Close() EndSub PrivateSub LaporanDataToolStripMenuItem_Click(sender AsObject, e AsEventArgs) Handles LaporanDataToolStripMenuItem.Click dg11.show() EndSub PrivateSub LaporanDataToolStripMenuItem2_Click(sender AsObject, e AsEventArgs) Handles LaporanDataToolStripMenuItem2.Click bbb.show() EndSub

2 PrivateSub LaporanDataToolStripMenuItem1_Click(sender AsObject, e AsEventArgs) Handles LaporanDataToolStripMenuItem1.Click das11.show() EndSub PrivateSub Label1_Click(sender AsObject, e AsEventArgs) Handles Label1.Click EndSub PrivateSub InputDataGajiGuruToolStripMenuItem_Click(sender AsObject, e AsEventArgs) Handles InputDataGajiGuruToolStripMenuItem.Click Me.Hide() gaji.show() EndSub PrivateSub LaporGajiGuruToolStripMenuItem_Click(sender AsObject, e AsEventArgs) Handles LaporGajiGuruToolStripMenuItem.Click dgj11.show() EndSub 2.Input Absen Siswa Imports System.Data.OleDb Public Class absen Public cmd As OleDbCommand Public da As OleDbDataAdapter Public ds As DataSet Public dt As DataTable Public dr As OleDbDataReader Private Sub absen_load(sender As Object, e As EventArgs) Handles MyBase.Load

3 Public Sub Call koneksi() Dim da As New OleDbDataAdapter Dim cmd As New OleDbCommand Dim dt As New DataTable Dim i As Integer Dim query As String = "select *from murid" cmd.commandtext = query cmd.connection = kon With da.selectcommand = cmd.fill(dt) For i = 0 To dt.rows.count - 1 With ListView1.Items.Add(dt.Rows(i)("nis")) With.Items(.Items.Count - 1).SubItems.Add(dt.Rows(i)("nama")).Add(dt.Rows(i)("k")).Add(dt.Rows(i)("heb")).Add(dt.Rows(i)("a2")).Add(dt.Rows(i)("s"))

4 .Add(dt.Rows(i)("i")).Add(dt.Rows(i)("b")) Next Sub TextBox1.Text = "" TextBox2.Text = "" TextBox3.Text = "" TextBox4.Text = "" TextBox5.Text = "" TextBox6.Text = "" TextBox7.Text = "" TextBox8.Text = "" Private Sub edit_click(sender As Object, e As EventArgs) Handles edit.click cmd = New OleDbCommand cmd.connection = kon cmd.commandtype = CommandType.Text cmd.commandtext = "update murid set heb = '" & TextBox4.Text & "', a2 = '" & TextBox8.Text & "',s = '" & TextBox7.Text & "',i = '" & TextBox6.Text & "',b = '" & TextBox5.Text & "' where nis=" & TextBox1.Text & ""

5 cmd.executenonquery() cmd.dispose() ListView1.Items.Clear() keluar.enabled = True Private Sub batal_click(sender As Object, e As EventArgs) Handles batal.click keluar.enabled = True Private Sub keluar_click(sender As Object, e As EventArgs) Handles keluar.click Me.Hide() mm.show() Private Sub ListView1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ListView1.SelectedIndexChanged keluar.enabled = False TextBox1.Text = ListView1.SelectedItems.Item(0).Text TextBox2.Text = ListView1.SelectedItems.Item(0).SubItems(1).Text TextBox3.Text = ListView1.SelectedItems.Item(0).SubItems(2).Text

6 TextBox4.Text = ListView1.SelectedItems.Item(0).SubItems(3).Text TextBox8.Text = ListView1.SelectedItems.Item(0).SubItems(4).Text TextBox7.Text = ListView1.SelectedItems.Item(0).SubItems(5).Text TextBox6.Text = ListView1.SelectedItems.Item(0).SubItems(6).Text TextBox5.Text = ListView1.SelectedItems.Item(0).SubItems(7).Text End Class ListView1.Items.Clear() 3.Input Data siswa Imports System.Data.OleDb Public Class murid Public cmd As OleDbCommand Public da As OleDbDataAdapter Public ds As DataSet Public dt As DataTable Public dr As OleDbDataReader Private Sub murid_load(sender As Object, e As EventArgs) Handles MyBase.Load hapus.enabled = False edit.enabled = False Simpan.Enabled = True batal.enabled = False c1.items.add("islam") c1.items.add("kristen") c1.items.add("hindu")

7 c1.items.add("budha") c2.items.add("pria") c2.items.add("wanita") Public Sub Call koneksi() Dim da As New OleDbDataAdapter Dim cmd As New OleDbCommand Dim dt As New DataTable Dim i As Integer Dim query As String = "select *from murid" cmd.commandtext = query cmd.connection = kon With da.selectcommand = cmd.fill(dt) For i = 0 To dt.rows.count - 1 With ListView1.Items.Add(dt.Rows(i)("nis")) With.Items(.Items.Count - 1).SubItems.Add(dt.Rows(i)("nama")).Add(dt.Rows(i)("tl")).Add(dt.Rows(i)("tgl")).Add(dt.Rows(i)("a")).Add(dt.Rows(i)("al")).Add(dt.Rows(i)("jk")).Add(dt.Rows(i)("k")).Add(dt.Rows(i)("oa")).Add(dt.Rows(i)("ob")).Add(dt.Rows(i)("oal")) Next Sub a()

8 cmd = New OleDbCommand cmd.connection = kon cmd.commandtype = CommandType.Text cmd.commandtext = "insert into murid values ('" & TextBox1.Text & "','" & TextBox2.Text & "','" & TextBox3.Text & "','" & TextBox4.Text & "','" & c1.text & "','" & TextBox6.Text & "','" & c2.text & "','" & TextBox9.Text & "','" & TextBox8.Text & "','" & TextBox7.Text & "','" & TextBox6.Text & "','0','0','0','0','Bulan')" cmd.executenonquery() MsgBox("DATA TELAH TERSIMPAN") ListView1.Items.Clear() Sub b() Dim pesan = MsgBox("APAKAH ANDA YAKIN INGIN MENGUBAH DATA INI?", vbyesno, "KONFIRMASI") If vbyes Then cmd = New OleDbCommand cmd.connection = kon cmd.commandtype = CommandType.Text cmd.commandtext = "update murid set nama = '" & TextBox2.Text & "',tl ='" & TextBox3.Text & "',tgl='" & TextBox4.Text & "',a='" & c1.text & "',al='" & TextBox6.Text & "',jk='" & c2.text & "',k ='" & TextBox9.Text & "',oa ='" & TextBox8.Text & "',ob ='" & TextBox7.Text & "',oal ='" & TextBox5.Text & "' where nis=" & TextBox1.Text & "" cmd.executenonquery() cmd.dispose() MsgBox("DATA BERHASIL DIUBAH") If vbno Then End If End If

9 ListView1.Items.Clear() keluar.enabled = True TextBox1.Enabled = True hapus.enabled = False batal.enabled = False edit.enabled = False Sub TextBox1.Text = "" TextBox2.Text = "" TextBox3.Text = "" TextBox5.Text = "" TextBox9.Text = "" TextBox8.Text = "" TextBox7.Text = "" TextBox6.Text = "" c1.text = "" c2.text = "" Private Sub Simpan_Click(sender As Object, e As EventArgs) Handles Simpan.Click a() Private Sub edit_click(sender As Object, e As EventArgs) Handles edit.click b() keluar.enabled = "true" Private Sub hapus_click(sender As Object, e As EventArgs) Handles hapus.click Dim pesan = MsgBox("APAKAH ANDA YAKIN INGIN MENGHAPUS DATA INI?", vbyesno, "KONFIRMASI") If pesan = vbyes Then

10 cmd = New OleDbCommand cmd.connection = kon cmd.commandtype = CommandType.Text cmd.commandtext = "delete from murid where nis = " & TextBox1.Text & "" cmd.executenonquery() cmd.dispose() MsgBox("DATA TELAH DIHAPUS") ListView1.Items.Clear() End If TextBox1.Enabled = True keluar.enabled = True edit.enabled = False hapus.enabled = False Simpan.Enabled = True Private Sub batal_click(sender As Object, e As EventArgs) Handles batal.click Simpan.Enabled = "true" edit.enabled = "False" keluar.enabled = "True" Private Sub keluar_click(sender As Object, e As EventArgs) Handles keluar.click mm.show() Me.Hide() Private Sub ListView1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ListView1.SelectedIndexChanged

11 hapus.enabled = True edit.enabled = True Simpan.Enabled = False keluar.enabled = False batal.enabled = True TextBox1.Enabled = False TextBox1.Text = ListView1.SelectedItems.Item(0).Text TextBox2.Text = ListView1.SelectedItems.Item(0).SubItems(1).Text TextBox3.Text = ListView1.SelectedItems.Item(0).SubItems(2).Text TextBox4.Text = ListView1.SelectedItems.Item(0).SubItems(3).Text c1.text = ListView1.SelectedItems.Item(0).SubItems(4).Text c2.text = ListView1.SelectedItems.Item(0).SubItems(5).Text TextBox6.Text = ListView1.SelectedItems.Item(0).SubItems(6).Text TextBox9.Text = ListView1.SelectedItems.Item(0).SubItems(7).Text TextBox8.Text = ListView1.SelectedItems.Item(0).SubItems(8).Text TextBox7.Text = ListView1.SelectedItems.Item(0).SubItems(9).Text TextBox5.Text = ListView1.SelectedItems.Item(0).SubItems(10).Text ListView1.Items.Clear() Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Call koneksi() Dim da As New OleDbDataAdapter Dim cmd As New OleDbCommand Dim dt As New DataTable

12 Dim i As Integer Dim a As String = "SELECT * FROM murid " & "WHERE nis LIKE '%" & TextBox1.Text & "%'" With cmd.commandtext = a.connection = kon With da.selectcommand = cmd.fill(dt) ListView1.Items.Clear() For i = 0 To dt.rows.count - 1 With ListView1.Items.Add(dt.Rows(i)("nis")) With.Items(.Items.Count - 1).SubItems.Add(dt.Rows(i)("nama")).Add(dt.Rows(i)("tl")).Add(dt.Rows(i)("tgl")).Add(dt.Rows(i)("a")).Add(dt.Rows(i)("al")).Add(dt.Rows(i)("jk")).Add(dt.Rows(i)("k")).Add(dt.Rows(i)("oa")).Add(dt.Rows(i)("ob")).Add(dt.Rows(i)("oal")) Next

13 End Class 4.Input Data Guru Imports System.Data.OleDb Public Class guru Public cmd As OleDbCommand Public da As OleDbDataAdapter Public ds As DataSet Public dt As DataTable Public dr As OleDbDataReader Private Sub guru_load(sender As Object, e As EventArgs) Handles MyBase.Load hapus.enabled = False edit.enabled = False simpan.enabled = True batal.enabled = False ComboBox1.Items.Add("Islam") ComboBox1.Items.Add("Kristen") ComboBox1.Items.Add("Hindu") ComboBox1.Items.Add("Budha") ComboBox2.Items.Add("Pria") ComboBox2.Items.Add("Wanita") ComboBox3.Items.Add("A1") ComboBox3.Items.Add("A2")

14 ComboBox3.Items.Add("A3") ComboBox3.Items.Add("A4") Public Sub Call koneksi() Dim da As New OleDbDataAdapter Dim cmd As New OleDbCommand Dim dt As New DataTable Dim i As Integer Dim query As String = "select *from guru" cmd.commandtext = query cmd.connection = kon With da.selectcommand = cmd.fill(dt) For i = 0 To dt.rows.count - 1 With ListView1.Items.Add(dt.Rows(i)("nip")) With.Items(.Items.Count - 1).SubItems.Add(dt.Rows(i)("nama")).Add(dt.Rows(i)("tl")).Add(dt.Rows(i)("tgl")).Add(dt.Rows(i)("a"))

15 .Add(dt.Rows(i)("jk")).Add(dt.Rows(i)("g")).Add(dt.Rows(i)("p")).Add(dt.Rows(i)("gb")).Add(dt.Rows(i)("al")) Next Sub a() cmd = New OleDbCommand cmd.connection = kon cmd.commandtype = CommandType.Text cmd.commandtext = "insert into guru values ('" & TextBox1.Text & "','" & TextBox2.Text & "','" & TextBox3.Text & "','" & b.text & "','" & ComboBox1.Text & "','" & ComboBox2.Text & "','" & ComboBox3.Text & "','" & TextBox8.Text & "','" & TextBox7.Text & "','" & TextBox7.Text & "','0','0','N/A','0')" cmd.executenonquery() MsgBox("DATA TELAH TERSIMPAN") ListView1.Items.Clear()

16 Sub TextBox1.Text = "" TextBox2.Text = "" TextBox3.Text = "" ComboBox3.Text = "" TextBox8.Text = "" TextBox7.Text = "" TextBox6.Text = "" ComboBox1.Text = "" ComboBox2.Text = " Private Sub simpan_click(sender As Object, e As EventArgs) Handles simpan.click a() Private Sub TextBox4_TextChanged(sender As Object, e As EventArgs) Private Sub keluar_click(sender As Object, e As EventArgs) Handles keluar.click Me.Hide() mm.show()

17 Private Sub edit_click(sender As Object, e As EventArgs) Handles edit.click Dim pesan = MsgBox("APAKAH ANDA YAKIN INGIN MENGUBAH DATA INI?", vbyesno, "KONFIRMASI") If vbyes Then cmd = New OleDbCommand cmd.connection = kon cmd.commandtype = CommandType.Text cmd.commandtext = "update guru set nama = '" & TextBox2.Text & "',tl ='" & TextBox3.Text & "',tgl='" & b.text & "',a='" & ComboBox1.Text & "',jk='" & ComboBox2.Text & "',g='" & ComboBox3.Text & "',p ='" & TextBox8.Text & "',gb ='" & TextBox7.Text & "',al ='" & TextBox6.Text & "' where nip=" & TextBox1.Text & "" End If cmd.executenonquery() cmd.dispose() MsgBox("DATA BERHASIL DIUBAH") ListView1.Items.Clear() keluar.enabled = True TextBox1.Enabled = True hapus.enabled = False batal.enabled = False edit.enabled = False

18 Private Sub hapus_click(sender As Object, e As EventArgs) Handles hapus.click Dim pesan = MsgBox("APAKAH ANDA YAKIN INGIN MENGHAPUS DATA INI?", vbyesno, "KONFIRMASI") If pesan = vbyes Then cmd = New OleDbCommand cmd.connection = kon cmd.commandtype = CommandType.Text cmd.commandtext = "delete from guru where nip = " & TextBox1.Text & "" cmd.executenonquery() cmd.dispose() MsgBox("DATA TELAH DIHAPUS") ListView1.Items.Clear() End If TextBox1.Enabled = True keluar.enabled = True edit.enabled = False

19 hapus.enabled = False simpan.enabled = True Private Sub batal_click(sender As Object, e As EventArgs) Handles batal.click simpan.enabled = True hapus.enabled = False edit.enabled = False keluar.enabled = True TextBox1.Enabled = True batal.enabled = False Private Sub ListView1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ListView1.SelectedIndexChanged hapus.enabled = True edit.enabled = True simpan.enabled = False keluar.enabled = False batal.enabled = True TextBox1.Enabled = False

20 TextBox1.Text = ListView1.SelectedItems.Item(0).Text TextBox2.Text = ListView1.SelectedItems.Item(0).SubItems(1).Text TextBox3.Text = ListView1.SelectedItems.Item(0).SubItems(2).Text b.text = ListView1.SelectedItems.Item(0).SubItems(3).Text ComboBox1.Text = ListView1.SelectedItems.Item(0).SubItems(4).Text ComboBox2.Text = ListView1.SelectedItems.Item(0).SubItems(5).Text ComboBox3.Text = ListView1.SelectedItems.Item(0).SubItems(6).Text TextBox8.Text = ListView1.SelectedItems.Item(0).SubItems(7).Text TextBox7.Text = ListView1.SelectedItems.Item(0).SubItems(8).Text TextBox6.Text = ListView1.SelectedItems.Item(0).SubItems(9).Text ListView1.Items.Clear() Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Call koneksi() Dim da As New OleDbDataAdapter Dim cmd As New OleDbCommand

21 Dim dt As New DataTable Dim i As Integer Dim a As String = "SELECT * FROM guru " & "WHERE nip LIKE '%" & TextBox1.Text & "%'" With cmd.commandtext = a.connection = kon With da.selectcommand = cmd.fill(dt) ListView1.Items.Clear() For i = 0 To dt.rows.count - 1 With ListView1.Items.Add(dt.Rows(i)("nip")) With.Items(.Items.Count - 1).SubItems.Add(dt.Rows(i)("nama")).Add(dt.Rows(i)("tl")).Add(dt.Rows(i)("tgl")).Add(dt.Rows(i)("a")).Add(dt.Rows(i)("jk")).Add(dt.Rows(i)("g")).Add(dt.Rows(i)("p")).Add(dt.Rows(i)("gb"))

22 .Add(dt.Rows(i)("al")) Next Private Sub TextBox8_TextChanged(sender As Object, e As EventArgs) Handles TextBox8.TextChanged End Class 5.Input Gaji Guru Imports System.Data.OleDb Public Class gaji Public cmd As OleDbCommand Public da As OleDbDataAdapter Public ds As DataSet Public dt As DataTable Public dr As OleDbDataReader Private Sub gaji_load(sender As Object, e As EventArgs) Handles MyBase.Load Public Sub

23 Dim a As Integer Dim b As String b = am.value Select Case TextBox7.Text Case "A1" a = "400000" Case "A2" a = "300000" Case "A3" a = "200000" Case "A4" a = "100000" End Select TextBox3.Text = a TextBox6.Text = a + b Call koneksi() Dim da As New OleDbDataAdapter Dim cmd As New OleDbCommand Dim dt As New DataTable Dim i As Integer Dim query As String = "select *from guru" cmd.commandtext = query cmd.connection = kon

24 With da.selectcommand = cmd.fill(dt) For i = 0 To dt.rows.count - 1 Next Sub a() With ListView1.Items.Add(dt.Rows(i)("nip")) With.Items(.Items.Count - 1).SubItems.Add(dt.Rows(i)("nama")).Add(dt.Rows(i)("g")).Add(dt.Rows(i)("gaji")).Add(dt.Rows(i)("bn")).Add(dt.Rows(i)("tg")).Add(dt.Rows(i)("kt")) Dim pesan = MsgBox("APAKAH ANDA YAKIN INGIN MENGUBAH DATA INI?", vbyesno, "KONFIRMASI") If vbyes Then cmd = New OleDbCommand cmd.connection = kon cmd.commandtype = CommandType.Text

25 cmd.commandtext = "update guru set gaji = '" & TextBox3.Text & "',bn ='" & am.value & "',kt='" & aq.text & "',tg='" & TextBox6.Text & "' where nip =" & TextBox1.Text & "" End If cmd.executenonquery() cmd.dispose() MsgBox("DATA BERHASIL DIUBAH") ListView1.Items.Clear() keluar.enabled = True TextBox1.Enabled = True batal.enabled = False edit.enabled = False Sub TextBox1.Text = "" TextBox2.Text = "" TextBox3.Text = "" am.value = "0" aq.text = ""

26 Private Sub edit_click(sender As Object, e As EventArgs) Handles edit.click a() Private Sub ListView1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ListView1.SelectedIndexChanged edit.enabled = True keluar.enabled = False batal.enabled = True TextBox1.Enabled = False TextBox1.Text = ListView1.SelectedItems.Item(0).Text TextBox2.Text = ListView1.SelectedItems.Item(0).SubItems(1).Text TextBox7.Text = ListView1.SelectedItems.Item(0).SubItems(2).Text TextBox3.Text = ListView1.SelectedItems.Item(0).SubItems(3).Text am.value = ListView1.SelectedItems.Item(0).SubItems(4).Text TextBox6.Text = ListView1.SelectedItems.Item(0).SubItems(5).Text aq.text = ListView1.SelectedItems.Item(0).SubItems(6).Text ListView1.Items.Clear()

27 Private Sub batal_click(sender As Object, e As EventArgs) Handles batal.click keluar.enabled = True Private Sub keluar_click(sender As Object, e As EventArgs) Handles keluar.click Me.Hide() mm.show() Private Sub Label6_Click(sender As Object, e As EventArgs) Handles Label6.Click Private Sub Label1_Click(sender As Object, e As EventArgs) Handles Label1.Click End Class

28 6. Koneksi Imports System.Data.OleDb Module Module1 Public kon As OleDbConnection Public str As String Public Sub koneksi() kon = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\Kucingg\Documents\Visual Studio 2015\Projects\TATA\TATA\guru.mdb") End Module kon.open()

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Khối: Cao Đẳng nghề và Trung Cấp Năm 2009

Khối: Cao Đẳng nghề và Trung Cấp Năm 2009 Hướng Dẫn Thực Hành Lập Trình Windows Nâng Cao Khối: Cao Đẳng nghề và Trung Cấp Năm 2009 Hướng dẫn: Bài tập thực hành được chia làm nhiều Module Mỗi Module được thiết kế cho thời lượng là 3 tiết thực hành

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

> ADO.NET: ActiveX Data Objects for.net, set of components used to interact with any DB/ XML docs

> ADO.NET: ActiveX Data Objects for.net, set of components used to interact with any DB/ XML docs > ADO.NET: ActiveX Data Objects for.net, set of components used to interact with any DB/ XML docs It supports 2 models for interacting with the DB: 1. Disconnected Model 2. Connection Oriented Model Note:

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

Anexo C Código de programación Pág Resumen

Anexo C Código de programación Pág Resumen Anexo C Código de programación Pág. 1 1. Resumen En este anexo se adjuntarán los códigos de programación de los diversos software que se han utilizado. Es decir, el código para la creación de la aplicación

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

LẬP TRÌNH TRÊN MÔI TRƯỜNG WINDOWS *** ADO.NET

LẬP TRÌNH TRÊN MÔI TRƯỜNG WINDOWS *** ADO.NET LẬP TRÌNH TRÊN MÔI TRƯỜNG WINDOWS *** ADO.NET Nội dung trình bày Giới thiệu Connected Model Disconnected Model 2 Giới thiệu ADO.NET là một tập các lớp thư viện được sử dụng để truy xuất dữ liệu Thêm/xóa/sửa

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

LAMPIRAN : LISTING PROGRAM

LAMPIRAN : LISTING PROGRAM LAMPIRAN : LISTING PROGRAM Kode Program Form Login Private Sub cbolevel_click() If cbolevel.text = "Pengguna" Then txtlogin.enabled = False txtpass.enabled = False txtlogin.visible = False txtpass.visible

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

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

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

More information

Building Windows Front Ends to SAS Software. Katie Essam Amadeus Software Limited 20 th May 2003

Building Windows Front Ends to SAS Software. Katie Essam Amadeus Software Limited 20 th May 2003 Building Windows Front Ends to SAS Software Katie Essam Amadeus Software Limited 20 th May 2003 Topics Introduction What is.net? SAS Software s Interoperability Communicating with SAS from VB.NET Conclusions

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

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

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

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

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

LAMPIRAN A LISTING PROGRAM. Universitas Sumatera Utara

LAMPIRAN A LISTING PROGRAM. Universitas Sumatera Utara LAMPIRAN A LISTING PROGRAM LISTING PROGRAM MENU UTAMA Dim T As String Dim i Private Sub Dafsis_Click() Form5.Show Private Sub Dafwai_Click() Form5.Show Private Sub Dasis_Click() Form2.Show Private Sub

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

BIS4430 Web-based Information Systems Management. Unit 11 [BIS4430, LU11 version1.0, E.M, 09/07)]

BIS4430 Web-based Information Systems Management. Unit 11 [BIS4430, LU11 version1.0, E.M, 09/07)] SCOPE Context BIS4430 Web-based Information Systems Management Unit 11 [BIS4430, LU11 version1.0, E.M, 09/07)] A fully dynamic e-commerce site must be able to send and retrieve data from the user and some

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

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

Insert Data into Table using C# Code

Insert Data into Table using C# Code Insert Data into Table using C# Code CREATE TABLE [registration]( [roll_no] [int] NULL, [name] [varchar](50), [class] [varchar](50), [sex] [varchar](50), [email] [varchar](50))

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

Encrypt and Decrypt Username or Password stored in database in ASP.Net using C# and VB.Net

Encrypt and Decrypt Username or Password stored in database in ASP.Net using C# and VB.Net Encrypt and Decrypt Username or Password stored in database in ASP.Net using C# and VB.Net Here Mudassar Ahmed Khan has explained how to encrypt and store Username or Password in SQL Server Database Table

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

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

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

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

ก 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

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

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

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

LẬP TRÌNH TRÊN MÔI TRƯỜNG WINDOWS ADO.NET

LẬP TRÌNH TRÊN MÔI TRƯỜNG WINDOWS ADO.NET LẬP TRÌNH TRÊN MÔI TRƯỜNG WINDOWS ADO.NET Phạm Minh Tuấn pmtuan@fit.hcmuns.edu.vn Nội dung trình bày Giới thiệu Connected Model Disconnected Model Khoa CNTT - ĐH KHTN 08/09/11 Giói thiệu 4 ADO.NET là một

More information

LAMPIRAN. Universitas Sumatera Utara

LAMPIRAN. Universitas Sumatera Utara 67 LAMPIRAN Lampiran A-1 Listing Program Visual Basic Private Sub mn_isidata_click() frm_isi_data.show Me.Hide Private Sub mn_koneksiport_click() frm_koneksi_port.show Me.Hide Private Sub mn_tentang_click()

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

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

It is the primary data access model for.net applications Next version of ADO Can be divided into two parts. Resides in System.

It is the primary data access model for.net applications Next version of ADO Can be divided into two parts. Resides in System. It is the primary data access model for.net applications Next version of ADO Can be divided into two parts Providers DataSets Resides in System.Data namespace It enables connection to the data source Each

More information

Real4Test. Real IT Certification Exam Study materials/braindumps

Real4Test.   Real IT Certification Exam Study materials/braindumps Real4Test http://www.real4test.com Real IT Certification Exam Study materials/braindumps Exam : 70-561-Csharp Title : TS:MS.NET Framework 3.5,ADO.NET Application Development Vendors : Microsoft Version

More information

UNIT - III BUILDING WINDOWS APPLICATION GENERAL WINDOWS CONTROLS FOR THE WINDOWS APPLICATION

UNIT - III BUILDING WINDOWS APPLICATION GENERAL WINDOWS CONTROLS FOR THE WINDOWS APPLICATION UNIT - III BUILDING WINDOWS APPLICATION GENERAL WINDOWS CONTROLS FOR THE WINDOWS APPLICATION 1 SLNO CONTROL NAME SLNO CONTROL NAME 1. Button 9. PictureBox 2. Checkbox 3. RadioButton 4. Label 5. Textbox

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

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

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

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

Delegates (Visual Basic)

Delegates (Visual Basic) Delegates (Visual Basic) https://msdn.microsoft.com/en-us/library/ms172879(d=printer).aspx 1 of 4 02.09.2016 18:00 Delegates (Visual Basic) Visual Studio 2015 Delegates are objects that refer to methods.

More information

MenuStrip Control. The MenuStrip control represents the container for the menu structure.

MenuStrip Control. The MenuStrip control represents the container for the menu structure. MenuStrip Control The MenuStrip control represents the container for the menu structure. The MenuStrip control works as the top-level container for the menu structure. The ToolStripMenuItem class and the

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

EXAMGOOD QUESTION & ANSWER. Accurate study guides High passing rate! Exam Good provides update free of charge in one year!

EXAMGOOD QUESTION & ANSWER. Accurate study guides High passing rate! Exam Good provides update free of charge in one year! EXAMGOOD QUESTION & ANSWER Exam Good provides update free of charge in one year! Accurate study guides High passing rate! http://www.examgood.com Exam : 70-561C++ Title : TS: MS.NET Framework 3.5, ADO.NET

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. Source Code Tampilan Awal. Source Code Menu Utama

LISTING PROGRAM. Source Code Tampilan Awal. Source Code Menu Utama LISTING PROGRAM Source Code Tampilan Awal Private Sub cmdkeluar_click() MsgBox "Terima Kasih Telah Membuka Program Ini.", vbinformation, "Quick IP Ver 1.0" End Private Sub cmdmasuk_click() MenuUtama.Show

More information

An InputBox( ) function will display an input Box window where the user can enter a value or a text. The format is

An InputBox( ) function will display an input Box window where the user can enter a value or a text. The format is InputBox( ) Function An InputBox( ) function will display an input Box window where the user can enter a value or a text. The format is A = InputBox ( Question or Phrase, Window Title, ) Example1: Integer:

More information

LAMPIRAN Lampiran Utama. a. Struktur Organisasi

LAMPIRAN Lampiran Utama. a. Struktur Organisasi LAMPIRAN 5.1. Lampiran Utama a. Struktur Organisasi b. Flowchart Prosedur Penggajian PT Timatex c. Coding List Class Koneksi package ta_552012010_aprilia; import java.sql.*; public class koneksi { private

More information

Employee Attendance System module using ASP.NET (C#)

Employee Attendance System module using ASP.NET (C#) Employee Attendance System module using ASP.NET (C#) Home.aspx DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

More information

ADO.NET for Beginners

ADO.NET for Beginners Accessing Database ADO.NET for Beginners Accessing database using ADO.NET in C# or VB.NET This tutorial will teach you Database concepts and ADO.NET in a very simple and easy-to-understand manner with

More information

Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

Page Language=C# AutoEventWireup=true CodeFile=Default.aspx.cs Inherits=_Default %> در این مقاله قصد داریم با استفاده از Ajax کاربر یک پیام را بدون الگین شدن و با استفاده از IP بتواند الیک و یا دیس الیک کند را در ASPآموزش دهیم. برای شروع یک بانک اطالعاتی به نام Test که حاوی دو جدول به

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

LAMPIRAN A : LISTING PROGRAM

LAMPIRAN A : LISTING PROGRAM LAMPIRAN A : LISTING PROGRAM 1. Form Login Private Sub Siap() txtnama.enabled = True txtpswd.enabled = True Private Sub BlmSiap() txtnama.enabled = False txtpswd.enabled = False Private Sub Kosong() txtnama

More information

Microsoft TS: Microsoft.NET Framework 3.5, Windows Forms Application Development Microsoft

Microsoft TS: Microsoft.NET Framework 3.5, Windows Forms Application Development Microsoft Microsoft TS: Microsoft.NET Framework 3.5, Windows Forms Application Development https://ensure2pass.com/-exam.html Microsoft Section 1: Sec One (1 to 10) Details: Microsoft (VB) QUESTION: 1 You are creating

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

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

LAMPIRAN 1. Kode Program Splash Screen

LAMPIRAN 1. Kode Program Splash Screen LAMPIRAN 1 Kode Program Splash Screen Private Sub Form_Load() lblversion.caption = "Version " & App.Major & "." & App.Minor & "." & App.Revision lblproductname.caption = App.Title lblcopyright.caption

More information

Lookup Project. frmlookup (Name: object is a combo box, style 2); use 4 labels: 2 for phone, 2 for mail. MsgBox Function:

Lookup Project. frmlookup (Name: object is a combo box, style 2); use 4 labels: 2 for phone, 2 for mail. MsgBox Function: Lookup Project frmlookup (Name: object is a combo box, style 2); use 4 labels: 2 for phone, 2 for mail. MsgBox Function: Help About, in a Message Box lookup.vbp programmed by C.Gribble Page 2 Code for

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

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

This note is developed from the contents available in Fundamental to IS. Lab notes and exercises

This note is developed from the contents available in  Fundamental to IS. Lab notes and exercises Content: This note is developed from the contents available in www.homeandlearn.co.uk Fundamental to IS. Lab notes and exercises Introduction to VB.net and Databases Getting Started VB.net Forms Adding

More information

JapanCert 専門 IT 認証試験問題集提供者

JapanCert 専門 IT 認証試験問題集提供者 JapanCert 専門 IT 認証試験問題集提供者 http://www.japancert.com 1 年で無料進級することに提供する Exam : 070-561-Cplusplus Title : TS: MS.NET Framework 3.5, ADO.NET Application Development Vendors : Microsoft Version : DEMO Get Latest

More information

Understanding the MsgBox command in Visual Basic

Understanding the MsgBox command in Visual Basic Understanding the MsgBox command in Visual Basic This VB2008 tutorial explains how to use the MsgBox function in Visual Basic. This also works for VBS MsgBox. The MsgBox function displays a message in

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

ComponentOne. MultiSelect for WinForms

ComponentOne. MultiSelect for WinForms ComponentOne MultiSelect for WinForms GrapeCity US GrapeCity 201 South Highland Avenue, Suite 301 Pittsburgh, PA 15206 Tel: 1.800.858.2739 412.681.4343 Fax: 412.681.4384 Website: https://www.grapecity.com/en/

More information

Social Networking Site

Social Networking Site Governors State University OPUS Open Portal to University Scholarship All Capstone Projects Student Capstone Projects Fall 2010 Social Networking Site Navis Amalraj Governors State University Follow this

More information

Errors, Warnings, and Issues WARNING #2077

Errors, Warnings, and Issues WARNING #2077 WARNING #2077 Change the default 0 index in the Rows property with the correct one. Description When upgrading an ADO Recordset object to native ADO.Net, the VBUC converts all the Recordset objects to

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

EVALUATION COPY. Unauthorized reproduction or distribution is prohibited. Table of Contents (Detailed)

EVALUATION COPY. Unauthorized reproduction or distribution is prohibited. Table of Contents (Detailed) Table of Contents (Detailed) Chapter 1 Introduction to ADO.NET... 1 Microsoft Data Access Technologies... 3 ODBC... 4 OLE DB... 5 ActiveX Data Objects (ADO)... 6 Accessing SQL Server before ADO.NET...

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

iseries Access in the.net World

iseries Access in the.net World Session: 420219 Agenda Key: 44CA ~ Access in the.net World Brent Nelson - bmnelson@us.ibm.com Access Development 8 Copyright IBM Corporation, 2005. All Rights Reserved. This publication may refer to products

More information

SQL Injection. SQL injection is a code injection technique that might destroy your database.

SQL Injection. SQL injection is a code injection technique that might destroy your database. SQL Injection SQL injection is a code injection technique that might destroy your database. SQL injection is one of the most common web hacking techniques. SQL injection is the placement of malicious code

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

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

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

Answer on Question# Programming, C#

Answer on Question# Programming, C# Answer on Question#38723 - Programming, C# 1. The development team of SoftSols Inc. has revamped the software according to the requirements of FlyHigh Airlines and is in the process of testing the software.

More information

In the previous chapter we created a web site with images programmed into HTML page code using commands such as: <img src="images/train.

In the previous chapter we created a web site with images programmed into HTML page code using commands such as: <img src=images/train. Chapter 6: Mountain Bike Club 113 6 Mountain Bike Club In the previous chapter we created a web site with images programmed into HTML page code using commands such as: In

More information

Consuming and Manipulating Data O BJECTIVES

Consuming and Manipulating Data O BJECTIVES O BJECTIVES This chapter covers the following Microsoft-specified objectives for the Consuming and Manipulating Data section of Exam 70-316, Developing and Implementing Windows-Based Applications with

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