Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
tabel()
End Sub
Sub tabel()
LV.Columns.Add("npm", 80, HorizontalAlignment.Center)
LV.Columns.Add("nama", 180, HorizontalAlignment.Left)
LV.View = View.Details
LV.GridLines = 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 simpan_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles simpan.Click
isitabel()
npm.Text = ""
nama.Text = ""
End Sub
End Class