Listing Program
Public Class Form1
list.Columns.Add("NPM", 80, HorizontalAlignment.Center)
list.Columns.Add("Nama", 100, HorizontalAlignment.Left)
list.View = View.Details
list.GridLines = True
list.FullRowSelect = True
End Sub
Dim lst As New ListViewItem
lst.Text = npm.Text
lst.SubItems.Add(nama.Text)
list.Items.Add(lst)
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
BuatTable()
End Sub
IsiTable()
nama.Text = ""
npm.Text = ""
End Sub
list.Items.Clear()
End Sub
list.Items.Remove(list.SelectedItems(0))
End Sub
Hasil Program
Tidak ada komentar:
Posting Komentar