Lampiran 1 Kode Program

Size: px
Start display at page:

Download "Lampiran 1 Kode Program"

Transcription

1 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 sender As System.Object, ByVal e As System.EventArgs) Handles RB_1.CheckedChanged, RB_2.CheckedChanged If RB_1.Checked Then _gamelist = New GameInfoList _gamelist.getallgame(_info) Call filllvdaftarkaset(_gamelist) CB_KategoriPencarian.Items.Clear() CB_KategoriPencarian.Items.Add("Judul") CB_KategoriPencarian.Items.Add("Mode Permainan") CB_KategoriPencarian.Items.Add("Genre") CB_KategoriPencarian.Items.Add("Tahun Rilis") _filmlist = New FilmInfoList _filmlist.getallfilm(_info) Call filllvdaftarkaset(_filmlist) CB_KategoriPencarian.Items.Clear() CB_KategoriPencarian.Items.Add("Judul") CB_KategoriPencarian.Items.Add("Produser") CB_KategoriPencarian.Items.Add("Pemeran") CB_KategoriPencarian.Items.Add("Genre") CB_KategoriPencarian.Items.Add("Tahun Rilis") CB_KategoriPencarian.SelectedIndex = 0 If Not _info = "" Then MsgBox(_info) Private Sub TB_KataKunci_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TB_KataKunci.KeyPress, TB_KodeCek.KeyPress If Asc(e.KeyChar) = 13 Then If sender.name = "TB_KataKunci" Then Call CariKaset() Call CekKodeKaset() Private Sub BT_CekKaset_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BT_CekKaset.Click

2 54 Call CekKodeKaset() Private Sub LV_DaftarKaset_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles LV_DaftarKaset.DoubleClick If LV_DaftarKaset.SelectedItems.Count > 0 Then If LV_DaftarKaset.SelectedItems(0).SubItems(2).Text = "Keluar" Then MsgBox("Kaset sedang dipinjam") Exit Sub If TypeOf LV_DaftarKaset.SelectedItems(0).Tag Is GameInfo Then Dim G As GameInfo = LV_DaftarKaset.SelectedItems(0).Tag Call filllvdaftarpinjam(g) Dim F As FilmInfo = LV_DaftarKaset.SelectedItems(0).Tag Call filllvdaftarpinjam(f) Private Sub BT_OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BT_OK.Click If LV_DaftarPinjam.Items.Count > 0 Then Dim DP As New DetailPinjam DP.List_Items = LV_DaftarPinjam.Items DP.ShowDialog() Private Sub BT_Batal_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BT_Batal.Click Me.Close()

3 55 Kode Program 2 Kode Menu Detail Peminjaman Private Sub DetailPinjam_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load For Each itempinjam As ListViewItem In List_Items Dim lvi As New ListViewItem If TypeOf itempinjam.tag Is GameInfo Then Dim G As GameInfo = CType(itemPinjam.Tag, GameInfo) Call filllvdaftarkaset(g) Dim F As FilmInfo = CType(itemPinjam.Tag, FilmInfo) Call filllvdaftarkaset(f) Next If List_Items.Count < 3 Then _lamapinjam = 1 If List_Items.Count < 5 Then _lamapinjam = 2 If List_Items.Count > 5 Then _lamapinjam = 3 LB_LamaPinjam.Text = _lamapinjam & " Hari, Sampai Tanggal (" & Format(DateAdd(DateInterval.Day, _lamapinjam, Date.Now), "dd MMMM yyyy") & ")" Private Sub BT_Simpan_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BT_Simpan.Click Dim KP As String = GetKodePeminjaman() For Each itempinjam As ListViewItem In LV_DaftarKaset.Items Dim P As New BusinessLib.Peminjaman P.KODE_KASET = itempinjam.text P.BIAYA = CType(itemPinjam.SubItems(2).Text, Decimal) P.LAMA_PINJAM = _lamapinjam P.TANGGAL_PINJAM = FormatDateTime(Date.Now, DateFormat.ShortDate) P.KODE_ANGGOTA = LB_KodeAnggota.Text P.KODE_PEMINJAMAN = KP P.SavePeminjaman(_info) Next If Not _info = "" Then MsgBox(_info) Private Sub BT_Batal_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BT_Batal.Click Me.Close()

4 56 Private Sub BT_Cari_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BT_Cari.Click If TB_KodeAnggota.Text = "" Then MsgBox("Masukkan kode Anggota") Call getandfillcontrolanggotalocal() Private Sub TB_KodeAnggota_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TB_KodeAnggota.KeyPress If Asc(e.KeyChar) = 13 Then If TB_KodeAnggota.Text = "" Then MsgBox("Masukkan kode Anggota") Call getandfillcontrolanggotalocal() Private Sub DTP_TanggalPinjam_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) LB_LamaPinjam.Text = _lamapinjam & " Hari, Sampai Tanggal (" & Format(DateAdd(DateInterval.Day, _lamapinjam, Date.Now), "dd MMMM yyyy") & ")" Kode Program 3 Kode Program Menu Pengembalian Private Sub CB_All_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CB_All.CheckedChanged If CB_All.Checked Then For Each i As ListViewItem In LV_DaftarPeminjaman.Items i.checked = True Next For Each i As ListViewItem In V_DaftarPeminjaman.Items i.checked = False Next Private Sub BT_Cari_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BT_Cari.Click ListPeminjaman = New PeminjamanInfoList ListPeminjaman = ListPeminjaman.GetPeminjamanByKodeAnggota(TB_KodeAnggota.Text, _info) Call filllistviewandcontrol(listpeminjaman)

5 57 Private Sub TB_KodeAnggota_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TB_KodeAnggota.KeyPress If Asc(e.KeyChar) = 13 Then ListPeminjaman = New PeminjamanInfoList ListPeminjaman = ListPeminjaman.GetPeminjamanByKodeAnggota(TB_KodeAnggota.Text, _info) Call filllistviewandcontrol(listpeminjaman) Private Sub ErrorTimer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ErrorTimer.Tick If _counter = 0 Then _errlabel.visible = True _counter += 1 _errlabel.visible = False _counter = 0 Private Sub TB_KodeAnggota_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TB_KodeAnggota.TextChanged ErrorTimer.Stop() errlabel.visible = False Private Sub BT_Simpan_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BT_Simpan.Click If LV_DaftarPeminjaman.CheckedItems.Count > 0 Then Dim KP As String = GetKodePengembalian() For i As Integer = 0 To LV_DaftarPeminjaman.CheckedItems.Count - 1 Dim PInfo As PeminjamanInfo = LV_DaftarPeminjaman.CheckedItems(i).Tag Dim denda As Decimal = LV_DaftarPeminjaman.CheckedItems(i).SubItems(0).Tag P = New BusinessLib.Pengembalian Call filldatapengembalian(p, PInfo, denda, KP) P.SavePengembalian(_info) Next If Not _info = "" Then MsgBox(_info) _info = "" Private Sub BT_Batal_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BT_Batal.Click Me.Close()

6 58 Private Sub DTP_TanggalKembali_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) ListPeminjaman = New PeminjamanInfoList ListPeminjaman = ListPeminjaman.GetPeminjamanByKodeAnggota(TB_KodeAnggota.Text, _info) Call filllistviewandcontrol(listpeminjaman) Kode Program 4 Kode Program Lihat Anggota Cabang Private Sub DaftarAnggota_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim ir As New Identitas.IdentitasRental LB_Rental.Text = ir.getcabangrental & " (Cabang)" LV_DaftarAnggota.BackColor = Color.LightSkyBlue LV_DaftarAnggota.ForeColor = Color.SlateBlue Call filllvdaftaranggota(s.getallanggota) Kode Program 5 Kode Program Lihat Daftar Kaset Cabang Private Sub DaftarKaset_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim ir As New Identitas.IdentitasRental LB_Rental.Text = ir.getcabangrental & " (Cabang)" LV_DaftarKaset.BackColor = Color.LightSkyBlue LV_DaftarKaset.ForeColor = Color.SlateBlue RB_1.Checked = True Private Sub BT_Cari_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BT_Cari.Click Call CariKasetFromService() TB_KataKunci.Clear() Private Sub RB_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RB_1.CheckedChanged, RB_2.CheckedChanged If RB_1.Checked Then Call filllvdaftarkaset(s.getallgame) CB_KategoriPencarian.Items.Clear() CB_KategoriPencarian.Items.Add("Judul") CB_KategoriPencarian.Items.Add("Mode Permainan") CB_KategoriPencarian.Items.Add("Genre") CB_KategoriPencarian.Items.Add("Tahun Rilis")

7 59 Call filllvdaftarkaset(s.getallfilm) CB_KategoriPencarian.Items.Clear() CB_KategoriPencarian.Items.Add("Judul") CB_KategoriPencarian.Items.Add("Produser") CB_KategoriPencarian.Items.Add("Pemeran") CB_KategoriPencarian.Items.Add("Genre") CB_KategoriPencarian.Items.Add("Tahun Rilis") CB_KategoriPencarian.SelectedIndex = 0 If Not _info = "" Then MsgBox(_info) Private Sub TB_KataKunci_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TB_KataKunci.KeyPress If Asc(e.KeyChar) = 13 Then Call CariKasetFromService() TB_KataKunci.Clear() Kode Program 6 Kode Program Menu Laporan Private Sub RB_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RB_1.CheckedChanged, RB_2.CheckedChanged If RB_1.Checked Then CB_Bulan.Enabled = False NUD_Tahun.Enabled = False CB_Bulan.SelectedIndex = 0 NUD_Tahun.Value = Date.Now.Year CB_Bulan.Enabled = True NUD_Tahun.Enabled = True Private Sub Laporan_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load CB_Bulan.SelectedIndex = 0 NUD_Tahun.Value = Date.Now.Year LB_INFO_LAPORAN.Text = "Laporan " & KetLaporan Private Sub BT_Tampilkan_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BT_Tampilkan.Click If KetLaporan = "Pengembalian" Then

8 60 Call GetDataTableAndFillReportPengembalian() Call GetDataTableAndFillReportPeminjaman() Private Sub BT_CETAK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BT_CETAK.Click Dim F_ViewLaporan As New ViewLaporan Dim data As New DataTable data = dt F_ViewLaporan.DATA_TABLE = data F_ViewLaporan.INFO = KetLaporan F_ViewLaporan.KETERANGAN = _keterangan F_ViewLaporan.INFO = KetLaporan F_ViewLaporan.Show() Kode Program 7 Kode Program Lihat Laporan Private Sub ViewLaporan_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim RPT As New ReportDocument CReportViewer.ShowLogo = False Select Case _info Case "Pengembalian" RPT.Load(Application.StartupPath & "\CRScoutingPengembalian.rpt") RPT.SetDataSource(_dt) RPT.SetParameterValue("keterangan", _info) CReportViewer.ReportSource = RPT Case "Peminjaman" RPT.Load(Application.StartupPath & "\CRScoutingPeminjaman.rpt") RPT.SetDataSource(_dt) RPT.SetParameterValue("keterangan", _keterangan) CReportViewer.ReportSource = RPT End Select Kode Program 8 Kode Program Menu Obrolan Public LocalPort As String Public HostIP As String Public HostPort As String Public info As String = "" Private counter As Integer = 0 Private _isfirstload As Boolean = True Private Sub BT_Close_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BT_Close.Click Me.Visible = False

9 61 Private Sub TB_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TB.KeyPress If Asc(e.KeyChar) = 13 Then Try WinsockSender.SendData(TB.Text) TB_Chat.Text &= LB_Rental.Text & " : " & vbcrlf & TB.Text & vbcrlf & " " & vbcrlf TB_Chat.ForeColor = Color.Red TB.Clear() Catch ex As Exception MsgBox(ex.Message) End Try Private Sub Chat_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Me.Load Dim ir As New Identitas.IdentitasRental LB_Rental.Text = ir.getnamarental LB_Rental.Tag = ir.getcabangrental LocalPort = ir.getlocalport HostPort = ir.getcabangport HostIP = ir.getcabangip Call FirstConnect() #Region " Winsock Receive " Private Sub WinsockReceive_ConnectionRequest(ByVal sender As Object, ByVal e As AxMSWinsockLib.DMSWinsockControlEvents_ConnectionRequestEvent) Handles WinsockReceive.ConnectionRequest WinsockReceive.Close() WinsockReceive.Accept(e.requestID) Private Sub WinsockReceive_DataArrival(ByVal sender As Object, ByVal e As AxMSWinsockLib.DMSWinsockControlEvents_DataArrivalEvent) Handles WinsockReceive.DataArrival WinsockReceive.GetData(info) counter += 1 If counter.tostring = info.tostring Then WinsockSender.Close() WinsockSender.Connect(HostIP, HostPort) counter -= 1 If _isfirstload = True Then TB_Chat.Clear() _isfirstload = False

10 62 If Not info.trim.length = 0 Then Me.Show() TB_Chat.Text &= LB_Rental.Tag.ToString & " : " & vbcrlf & info & vbcrlf & " " & vbcrlf TB_Chat.ForeColor = Color.Green #End Region #Region " Winsock sender " Private Sub BT_Kirim_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles BT_Kirim.Click Try WinsockSender.SendData(TB.Text) TB_Chat.Text &= LB_Rental.Text & " : " & vbcrlf & TB.Text & vbcrlf & " " & vbcrlf TB_Chat.ForeColor = Color.Red TB.Clear() Catch ex As Exception MsgBox(ex.Message) End Try Private Sub WinsockSender_ConnectEvent(ByVal sender As Object, ByVal e As System.EventArgs) Handles WinsockSender.ConnectEvent counter += 1 WinsockSender.SendData(counter.ToString) Kode Program 9 Kode Program Daftar Kaset (Client) Private Sub DaftarKaset_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Try isfirstload = False Call AktifasiRemote() Dim ir As New IdentitasRental lb_rental.text = inforental If inforental = "Local" Then LB_Rental.Text = ir.getnamarental & " (Local)" BT.BackgroundImage = Global.Rental_Client.My.Resources.Resources.ScoutingLegion BT.BackColor = Color.LightSkyBlue BackColor = Color.LightSkyBlue GroupBox1.ForeColor = Color.SlateBlue GroupBox2.ForeColor = Color.SlateBlue LV_DaftarKaset.BackColor = Color.LightSeaGreen LV_DaftarKaset.ForeColor = Color.White

11 63 LB_Rental.Text = ir.getcabangrental & " (Cabang)" BT.BackColor = Color.LightSeaGreen BT.BackgroundImage = Global.Rental_Client.My.Resources.Resources.Brigade BackColor = Color.LightSeaGreen GroupBox1.ForeColor = Color.White GroupBox2.ForeColor = Color.White LV_DaftarKaset.BackColor = Color.LightSkyBlue LV_DaftarKaset.ForeColor = Color.SlateBlue RB_1.Checked = True Catch ex As Exception MsgBox(ex.Message) End Try Private Sub BT_Cari_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BT_Cari.Click If inforental = "Local" Then Call CariKasetFromLocal() Call CariKasetFromService() Private Sub RB_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RB_1.CheckedChanged, RB_2.CheckedChanged If Not isfirstload Then If RB_1.Checked Then If inforental = "Local" Then Call filllvdaftarkaset(ro.getallgame) Call filllvdaftarkaset(ro.getallgamefromservice) CB_KategoriPencarian.Items.Clear() CB_KategoriPencarian.Items.Add("Judul") CB_KategoriPencarian.Items.Add("Mode Permainan") CB_KategoriPencarian.Items.Add("Genre") CB_KategoriPencarian.Items.Add("Tahun Rilis") If inforental = "Local" Then Call filllvdaftarkaset(ro.getallfilm) Call filllvdaftarkaset(ro.getallfilmfromservice) CB_KategoriPencarian.Items.Clear() CB_KategoriPencarian.Items.Add("Judul") CB_KategoriPencarian.Items.Add("Produser")

12 64 CB_KategoriPencarian.Items.Add("Pemeran") CB_KategoriPencarian.Items.Add("Genre") CB_KategoriPencarian.Items.Add("Tahun Rilis") CB_KategoriPencarian.SelectedIndex = 0 If Not _info = "" Then MsgBox(_info) Private Sub TB_KataKunci_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TB_KataKunci.KeyPress If Asc(e.KeyChar) = 13 Then If inforental = "Local" Then Call CariKasetFromLocal() Call CariKasetFromService() Private Sub LV_DaftarKaset_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles LV_DaftarKaset.DoubleClick If LV_DaftarKaset.SelectedItems.Count > 0 Then If RB_1.Checked Then desgame = New DeskripsiGame desgame.propgame = CType(LV_DaftarKaset.SelectedItems(0).Tag, GameInfo) desgame.info_rental = inforental desgame.show() desfilm = New DeskripsiFilm desfilm.propfilm = CType(LV_DaftarKaset.SelectedItems(0).Tag, FilmInfo) desfilm.info_rental = inforental desfilm.show()

13 65 Kode Program 10 Kode Program Lihat Detail Kaset (Client) Private Sub BT_MouseEnter(ByVal sender As Object, ByVal e As System.EventArgs) Handles BT_ShowThrailer.MouseEnter CType(sender, Button).Size = New System.Drawing.Size(220, 220) Private Sub BT_MouseLeave(ByVal sender As Object, ByVal e As System.EventArgs) Handles BT_ShowThrailer.MouseLeave CType(sender, Button).Size = New System.Drawing.Size(200, 200) Private Sub DeskripsiFilm_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If inforental = "Local" Then BackColor = Color.LightSkyBlue GroupBox1.BackColor = Color.LightSkyBlue BT_ShowThrailer.FlatAppearance.MouseOverBackColor = Color.LightSkyBlue BT_ShowThrailer.FlatAppearance.MouseDownBackColor = Color.LightSkyBlue BackColor = Color.LightSeaGreen GroupBox1.BackColor = Color.LightSeaGreen BT_ShowThrailer.FlatAppearance.MouseOverBackColor = Color.LightSkyBlue BT_ShowThrailer.FlatAppearance.MouseDownBackColor = Color.LightSkyBlue TB_Deskripsi.BackColor = Color.LightSeaGreen If Not PropFilm.Equals(Nothing) Then Call FillControl(PropFilm) Private Sub FillControl(ByVal F As FilmInfo) LB_Judul.Text = F.JUDUL LB_Produser.text = F.PRODUSER LB_Pemeran.Text = F.PEMERAN LB_Produksi.Text = F.PRODUKSI LB_Genre.Text = F.GENRE LB_TahunRilis.Text = F.TAHUN_RILIS TB_Deskripsi.Text = F.DESKRIPSI If F.THRAILER_URL Is Nothing Then BT_ShowThrailer.Hide() BT_ShowThrailer.Tag = F.THRAILER_URL Dim ms As New IO.MemoryStream(F.GAMBAR) PB_GambarFilm.Image = Image.FromStream(ms)

14 66 Private Sub BT_ShowThrailer_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BT_ShowThrailer.Click GroupBox1.Visible = False Dim IR As New Identitas.IdentitasRental MPlayer.URL = IR.GetDriveThrailer & BT_ShowThrailer.Tag.ToString Panel1.Visible = True Panel2.Visible = True Panel3.Visible = True Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None MPlayer.Focus() Private Sub MPlayer_KeyPressEvent(ByVal sender As Object, ByVal e As AxWMPLib._WMPOCXEvents_KeyPressEvent) Handles MPlayer.KeyPressEvent If e.nkeyascii = 27 Then MPlayer.close() Panel1.Visible = False Panel2.Visible = False Panel3.Visible = False Me.FormBorderStyle = Windows.Forms.FormBorderStyle.Fixed3D GroupBox1.Visible = True

15 67

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

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

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

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

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

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

LAMPIRAN. 1. Kode Program

LAMPIRAN. 1. Kode Program 1. Kode Program LAMPIRAN Kode Program 1. Kode program untuk Form Data Imports BusinessLib Public Class formdata #Region " Member " Dim _siswa As Siswa Dim _guru As Guru Dim _mapel As MataPelajaran Dim

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

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

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

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

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

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

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

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

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

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

More information

'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

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

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

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

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

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

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

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

CT862 Section 1 Introduction

CT862 Section 1 Introduction CT862 Section 1 Introduction VB.NET: VB introduced in 1991 Provided the first easily accessible means of writing Windows applications o The VB IDE was inherently graphical and mirrored the Windows OS itself

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

DRAWING AND MOVING IMAGES

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

More information

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

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

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

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

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

DEVELOPING OBJECT ORIENTED APPLICATIONS

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

More information

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

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

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

Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init

Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init Option Strict On Imports System.Drawing.Imaging Imports System.Drawing Imports System Imports System.Collections Imports System.Configuration Imports System.Data Imports System.IO Imports System.Web Imports

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

Tutorial 03 understanding controls : buttons, text boxes

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

More information

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

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

Year 12 : Visual Basic Tutorial.

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

More information

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

LAMPIRAN LISTING PROGRAM

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

More information

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

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

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

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

Visual Studio.NET for AutoCAD Programmers

Visual Studio.NET for AutoCAD Programmers December 2-5, 2003 MGM Grand Hotel Las Vegas Visual Studio.NET for AutoCAD Programmers Speaker Name: Andrew G. Roe, P.E. Class Code: CP32-3 Class Description: In this class, we'll introduce the Visual

More information

Learning VB.Net. Tutorial 16 Modules

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

More information

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

Lab 3 The High-Low Game

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

More information

VB FUNCTIONS AND OPERATORS

VB FUNCTIONS AND OPERATORS VB FUNCTIONS AND OPERATORS In der to compute inputs from users and generate results, we need to use various mathematical operats. In Visual Basic, other than the addition (+) and subtraction (-), the symbols

More information

Repetition Structures

Repetition Structures Repetition Structures There are three main structures used in programming: sequential, decision and repetition structures. Sequential structures follow one line of code after another. Decision structures

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

Chapter. Web Applications

Chapter. Web Applications Chapter Web Applications 144 Essential Visual Basic.NET fast Introduction Earlier versions of Visual Basic were excellent for creating applications which ran on a Windows PC, but increasingly there is

More information

Visual Basic 2008 The programming part

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

More information

Menus, Common Dialog Controls, Context Menus, Sub Procedures, and Functions

Menus, Common Dialog Controls, Context Menus, Sub Procedures, and Functions 5-menus.htm; updated September 12, 2011 Menus, Common Dialog Controls, Context Menus, Sub Procedures, and Functions Coverage: This chapter covers several important topics: (1) use of menus and context

More information

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

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

More information

(0,0) (600, 400) CS109. PictureBox and Timer Controls

(0,0) (600, 400) CS109. PictureBox and Timer Controls CS109 PictureBox and Timer Controls Let s take a little diversion and discuss how to draw some simple graphics. Graphics are not covered in the book, so you ll have to use these notes (or the built-in

More information

Lab 6: Making a program persistent

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

More information

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

Design Of Human Computer Interfaces Assignment 1- Hello World. Compliance Report

Design Of Human Computer Interfaces Assignment 1- Hello World. Compliance Report Design Of Human Computer Interfaces Assignment 1- Hello World Compliance Report Prepared for: Skip Poehlman Prepared By: K C Course: SE 4D03 Date: September 30, 2008 Contents 1. Code Listing a. Module

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

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

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

More information

C:\EDIdEv\Examples\HIPAA\5010\VbNet\vbNet_Gen277X214\Form1.vb Imports Edidev.FrameworkEDI

C:\EDIdEv\Examples\HIPAA\5010\VbNet\vbNet_Gen277X214\Form1.vb Imports Edidev.FrameworkEDI Imports Edidev.FrameworkEDI 1 Public Class Form1 Private Sub btngenerate_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btngenerate.click Dim oedidoc As edidocument Dim oschema

More information

Decision Structures. Start. Do I have a test in morning? Study for test. Watch TV tonight. Stop

Decision Structures. Start. Do I have a test in morning? Study for test. Watch TV tonight. Stop Decision Structures In the programs created thus far, Visual Basic reads and processes each of the procedure instructions in turn, one after the other. This is known as sequential processing or as the

More information

IOS Plus Trade - Web Services Version 4 Walkthrough

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

More information

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

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

More information

...ic Programming\Mystery Escape\Mystery Escape\frmEscape.vb

...ic Programming\Mystery Escape\Mystery Escape\frmEscape.vb ...ic Programming\Mystery Escape\Mystery Escape\frmEscape.vb 1 1 Option Strict On 2 3 Public Class frmescape 4 5 ' Class variables. 6 7 Private _intonehour As Integer = 1 8 Private _inttwohour As Integer

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-547(VB) Title : PRO:Design and Develop Web-Basd

More information

I101/B100 Problem Solving with Computers

I101/B100 Problem Solving with Computers I101/B100 Problem Solving with Computers By: Dr. Hossein Hakimzadeh Computer Science and Informatics IU South Bend 1 What is Visual Basic.Net Visual Basic.Net is the latest reincarnation of Basic language.

More information

Chapter 8 Arrays. Programming In Visual Basic.NET

Chapter 8 Arrays. Programming In Visual Basic.NET Chapter 8 Arrays Programming In Visual Basic.NET 1 Case Structure Best alternative for testing a single variable or expression for multiple values Any decisions coded with nested If statements can also

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

Fast Food Store Group Boxes and Other User Controls

Fast Food Store Group Boxes and Other User Controls VISUAL BASIC Fast Food Store Group Boxes and Other User Controls Copyright 2014 Dan McElroy Sample Program Execution The customer receipt is updated each time another selection is made and the Enter button

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

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

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

Lecture 10 OOP and VB.Net

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

More information

Lab 4: Adding a Windows User-Interface

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

More information

VB. Microsoft. TS- Microsoft.NET Framework 3.5 -C Windows Workflow Foundation

VB. Microsoft. TS- Microsoft.NET Framework 3.5 -C Windows Workflow Foundation Microsoft 70-504-VB TS- Microsoft.NET Framework 3.5 -C Windows Workflow Foundation Download Full Version : https://killexams.com/pass4sure/exam-detail/70-504-vb C. Dim runtime As New WorkflowRuntime()Dim

More information

Section 7 The BASIC Language II

Section 7 The BASIC Language II Dates Section 7 The BASIC Language II The Date class holds a date (between January 1 st, 0001 and December 31 st, 9999) combined with a time (between 0:00:00 and 23:59:59) Constructors of the Date class

More information

Updated: Saturday, November 29, 2014 Page 1

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

More information

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

Database Tutorials

Database Tutorials Database Tutorials Hello everyone welcome to database tutorials. These are going to be very basic tutorials about using the database to create simple applications, hope you enjoy it. If you have any notes

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

The New Brew-CQ Synchronous Sockets and Threading

The New Brew-CQ Synchronous Sockets and Threading The New Brew-CQ Synchronous Sockets and Threading Server Topology: The Brew-CQ server is an application written in the new.net compilers from Microsoft. The language of choice is Visual Basic. The purpose

More information

C:\EDIdEv\Examples\HIPAA\5010\VbNet\vbNet_Gen837X222A1\Form1.vb Imports Edidev.FrameworkEDI

C:\EDIdEv\Examples\HIPAA\5010\VbNet\vbNet_Gen837X222A1\Form1.vb Imports Edidev.FrameworkEDI Imports Edidev.FrameworkEDI 1 Public Class Form1 Private Sub btngenerate_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btngenerate.click Dim oedidoc As edidocument Dim oschemas

More information

ISM 3253 Exam I Spring 2009

ISM 3253 Exam I Spring 2009 ISM 3253 Exam I Spring 2009 Directions: You have exactly 75 minutes to complete this test. Time available is part of the exam conditions and all work must cease when "Stop work" is announced. Failing to

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

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

A Second Visual BASIC Application : Greetings

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

More information

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

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

More information

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

MATFOR In Visual Basic

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

More information

PASS4TEST. IT Certification Guaranteed, The Easy Way! We offer free update service for one year

PASS4TEST. IT Certification Guaranteed, The Easy Way!  We offer free update service for one year PASS4TEST IT Certification Guaranteed, The Easy Way! \ http://www.pass4test.com We offer free update service for one year Exam : 070-504-VB Title : TS: MS.NET Frmewk 3.5, Workflow Foundation App Dev Vendors

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

OVERLOADING METHODS AND CONSTRUCTORS: The Ball Class

OVERLOADING METHODS AND CONSTRUCTORS: The Ball Class OVERLOADING METHODS AND CONSTRUCTORS: The Ball Class Create a Ball Demo program that uses a Ball class. Use the following UML diagram to create the Ball class: Ball - ballcolor: Color - ballwidth, ballheight:

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

C:\EDIdEv\Examples\HIPAA\5010\VbNet\vbNet_Gen834X220A1\Form1.vb Imports Edidev.FrameworkEDI

C:\EDIdEv\Examples\HIPAA\5010\VbNet\vbNet_Gen834X220A1\Form1.vb Imports Edidev.FrameworkEDI Imports Edidev.FrameworkEDI 1 Public Class Form1 Private Sub btngenerate_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btngenerate.click Dim oedidoc As edidocument Dim oschemas

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

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