0% found this document useful (0 votes)
25 views2 pages

Tugas

The document contains the name, student number, and major of Eko Arif Azani, who is studying electrical engineering. It also contains the code for a Windows Forms application program that implements various formatting options for labels including changing font style, size, and color. The program loads label text from a text box and updates it when a button is clicked.

Uploaded by

Jhon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views2 pages

Tugas

The document contains the name, student number, and major of Eko Arif Azani, who is studying electrical engineering. It also contains the code for a Windows Forms application program that implements various formatting options for labels including changing font style, size, and color. The program loads label text from a text box and updates it when a button is clicked.

Uploaded by

Jhon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

NAMA : EKO ARIF AZANI

NIM : 41419310004
JURUSAN : TEKNIK ELEKTRO

PROGRAM

Public Class Form1

Private Sub ExitToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles


ExitToolStripMenuItem.Click
End
End Sub

Private Sub BoldToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles


BoldToolStripMenuItem.Click
Label1.Font = New Font("Microsoft Sans Serif", Label1.Font.Size,
Label1.Font.Style Xor FontStyle.Bold)
End Sub

Private Sub ItalicToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles


ItalicToolStripMenuItem.Click
Label1.Font = New Font("Microsoft Sans Serif", Label1.Font.Size,
Label1.Font.Style Xor FontStyle.Italic)
End Sub

Private Sub UnderlineToolStripMenuItem_Click(sender As Object, e As EventArgs)


Handles UnderlineToolStripMenuItem.Click
Label1.Font = New Font("Microsoft Sans Serif", Label1.Font.Size,
Label1.Font.Style Xor FontStyle.Underline)
End Sub

Private Sub StrikeoutToolStripMenuItem_Click(sender As Object, e As EventArgs)


Handles StrikeoutToolStripMenuItem.Click
Label1.Font = New Font("Microsoft Sans Serif", Label1.Font.Size,
Label1.Font.Style Xor FontStyle.Strikeout)
End Sub

Private Sub RegulerToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles


RegulerToolStripMenuItem.Click
Label1.Font = New Font("Microsoft Sans Serif", Label1.Font.Size,
Label1.Font.Style Xor FontStyle.Regular)
End Sub

Private Sub BiruToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles


BiruToolStripMenuItem.Click
Label1.ForeColor = Color.Blue
End Sub
Private Sub KuningToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles
KuningToolStripMenuItem.Click
Label1.ForeColor = Color.Yellow

End Sub

Private Sub HijauToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles


HijauToolStripMenuItem.Click
Label1.ForeColor = Color.Green

End Sub

Private Sub MerahToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles


MerahToolStripMenuItem.Click
Label1.ForeColor = Color.Red

End Sub

Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load


Label1.Text = TextBox1.Text

End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click


Label1.Text = TextBox1.Text
End Sub
End Class

You might also like