Lencana Facebook
Driver Downloads
Halaman
Blog Archive
Entri Populer
Followers
Kamis, 26 Januari 2012
Jawaban SOAL 2 (Hamdan.M)
07.52 |
Diposting oleh
NE-O
Listing Program:
Public Class Form1
Sub buattabel()
LV.Columns.Add("npm", 70, HorizontalAlignment.Center)
LV.Columns.Add("nama", 180, HorizontalAlignment.Left)
LV.View = View.Details
LV.GridLines = True
LV.FullRowSelect = True
End Sub
Sub isitabel()
Dim lst As New ListViewItem
lst.Text = npm.Text
lst.SubItems.Add(nama.Text)
LV.Items.Add(lst)
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
buattabel()
End Sub
Private Sub Btnsimpan_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btnsimpan.Click
isitabel()
npm.Text = ""
nama.Text = ""
End Sub
Private Sub Btnhapussem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btnhapussem.Click
LV.Items.Clear()
End Sub
Private Sub Btnhapuspil_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btnhapuspil.Click
LV.Items.Remove(LV.SelectedItems(0))
End Sub
End Class
Hasil Program:
Public Class Form1
Sub buattabel()
LV.Columns.Add("npm", 70, HorizontalAlignment.Center)
LV.Columns.Add("nama", 180, HorizontalAlignment.Left)
LV.View = View.Details
LV.GridLines = True
LV.FullRowSelect = True
End Sub
Sub isitabel()
Dim lst As New ListViewItem
lst.Text = npm.Text
lst.SubItems.Add(nama.Text)
LV.Items.Add(lst)
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
buattabel()
End Sub
Private Sub Btnsimpan_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btnsimpan.Click
isitabel()
npm.Text = ""
nama.Text = ""
End Sub
Private Sub Btnhapussem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btnhapussem.Click
LV.Items.Clear()
End Sub
Private Sub Btnhapuspil_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btnhapuspil.Click
LV.Items.Remove(LV.SelectedItems(0))
End Sub
End Class
Hasil Program:
Label:
Quiz
Langganan:
Posting Komentar (Atom)
Like This Yo...!!
Translate this Blog
Chat Box
Label
- aksi bakar ban (1)
- Bai Fang Li Tukang Becak yang Berhati Mulia (1)
- cheat empire dan allies (1)
- Info keren (37)
- Info Music (14)
- Mengapa orang korupsi ? Analisa psikologi (1)
- Music Album (11)
- Prospek di masa depan mahasiswa TI dan mahasiswa SI (1)
- Quiz (2)
- Script VB Untuk Konversi Bilangan Desimal Ke Biner dan Biner Ke Desimal (1)
- Tips dan Trik (14)
- Tips danTrik Komputer (22)
0 komentar:
Posting Komentar