Public Class Form1
Sub BuatTabel()
Lv.Columns.Add("npm", 80, 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 btnproses_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnproses.Click
IsiTabel()
npm.Text = ""
nama.Text = ""
End Sub
End Class
Tidak ada komentar:
Posting Komentar