Program 2. Variasi warna dan jenis tampilan menggunakan Visual Basic

tugasbaru2.1

tugasbaru2.2

Private Sub chkmiring_Click()

Label2.FontItalic = chkmiring.Value

End Sub

 

Private Sub chktebal_Click()

Label2.FontBold = chktebal.Value

 

End Sub

 

Private Sub cmdok_Click()

Label2.Caption = txt1.Text

 

End Sub

 

Private Sub cmdselesai_Click()

End

 

End Sub

 

Private Sub optbiru_Click()

Label2.ForeColor = vbBlue

 

End Sub

 

Private Sub optmerah_Click()

Label2.ForeColor = vbRed

 

End Sub

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s