Tutorial Programming

Tutorial basic, Visual Studio VB.NET 2013 Pengunaan Radio Button


Hallo sahabat saya akan menjelaskan Pengunaan Radio Button pada visual studio 2013, oke langsung aja



Private Sub BtnConfirm_Click(sender As Object, e As EventArgs) Handles BtnConfirm.Click
Dim Tcolor As String
If RadioRed.Checked  Then
Tcolor = “Red Color”
LblDisplay.ForeColor = Color.Red
ElseIf RadioGreen.Checked  Then
Tcolor = “Green Color”
LblDisplay.ForeColor = Color.Green
Else
Tcolor = “Yellow Color”
LblDisplay.ForeColor = Color.Yellow
End If
LblDisplay.Text = Tcolor
End Sub








Private Sub BtnConfirm_Click(sender As Object, e As EventArgs) Handles BtnConfirm.Click
Dim TSize, TColor As String
If RadioXL.Checked Then
TSize = “XL”
ElseIf RadioL.Checked Then
TSize = “L”
ElseIf RadioM.Checked Then
TSize = “M”
Else : TSize = “S”
End If
If RadioRed.Checked Then
TColor = “Red”
ElseIf RadioBlue.Checked Then
TColor = “Blue”
Else : TColor = “Beige”
End If
LblSize.Text = TSize
Lblcolor.Text = TColor
End Sub


Sekian tutorial saya sahabat semoga bermanfaat yah.

No comments:

Post a Comment

Tutorial Programming Designed by Templateism | Ary EJFA Copyright © 2015

Theme images by richcano. Powered by Blogger.