Minggu, 31 Januari 2010

CheckBox Keahlian

1.Buka VS 2008 Pro - > Klik File - > New Project -> pilih Windows Form Location beri nama , (Terserah anda Bebas )

2. Buat Form seperti ini :




















Tambahkan Kode di button :

3.

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim teks As String = ""
If CheckBox1.Checked Then
teks += CheckBox1.Text + ","
End If

If CheckBox2.Checked Then
teks += CheckBox2.Text + ","
End If

If CheckBox3.Checked Then
teks += CheckBox3.Text + ","
End If

If CheckBox4.Checked Then
teks += CheckBox4.Text + ","
End If

If CheckBox5.Checked Then
teks += CheckBox5.Text + ","
End If

MsgBox("Keahlian anda " + teks)

End Sub
End Class

Jalankan Programnya ||^_||||

Tidak ada komentar:

Posting Komentar