4th Share for Visual Basic

The 4th application

It is called aplikasi4. This application show how to use the check box in Visual Basic

This is the interface view :

here is the source code

Public Class Form1

Private Sub btproses_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btproses.Click

If chk1.Checked Then

Label4.Text = "1"

Label5.Text = chk1.Text

ElseIf chk2.Checked Then

Label4.Text = "2"

Label5.Text = chk2.Text

ElseIf chk3.Checked Then

Label4.Text = "3"

Label5.Text = chk3.Text

ElseIf chk4.Checked Then

Label4.Text = "4"

Label5.Text = chk4.Text

End If

End Sub

End Class


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: