Dimana Label "Checkbox dan Radio Button" digunakan untuk sample penggunaan setiap salah satu radio dan checkbox yang telah diisikan coding program untuk penggunaan style paragraf.
Public Class Form1Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChangedLabel1.Font = New Font("Arial", Label1.Font.Size, _Label1.Font.Style Xor FontStyle.Strikeout)End SubPrivate Sub CheckBox2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox2.CheckedChangedLabel1.Font = New Font("Arial", Label1.Font.Size, _Label1.Font.Style Xor FontStyle.Underline)End SubPrivate Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChangedLabel1.Font = New Font("Arial", Label1.Font.Size, _Label1.Font.Style Xor FontStyle.Regular)End SubPrivate Sub RadioButton2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton2.CheckedChangedLabel1.Font = New Font("Arial", Label1.Font.Size, _Label1.Font.Style Xor FontStyle.Italic)End SubPrivate Sub RadioButton4_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton4.CheckedChangedLabel1.Font = New Font("Arial", Label1.Font.Size, _Label1.Font.Style Xor FontStyle.Bold)End SubPrivate Sub RadioButton3_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton3.CheckedChangedLabel1.Font = New Font("Arial", Label1.Font.Size, _Label1.Font.Style Xor FontStyle.Bold Xor FontStyle.Italic)End SubPrivate Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.ClickEndEnd SubPrivate Sub RadioButton5_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton5.CheckedChangedLabel1.Font = New Font("Arial", 10)End SubPrivate Sub RadioButton7_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton7.CheckedChangedLabel1.Font = New Font("Arial", 30)End SubPrivate Sub GroupBox3_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GroupBox3.EnterLabel1.Font = New Font("Arial", 50)End SubEnd Class
Silahkan dicoba, untuk setiap penggunaan coding.
Belum ada tanggapan untuk "Membuat Format Paragraf (Font Style, Font Size , dan Efek Text)"
Post a Comment