Chpter 3
Chpter 3
NET
PROGRAMMING
Basic Controls in
VB.Net
Chapter 3:
Objective
What is an object?
Chapter 3:
Arithmetic Operations
Label1 Label2
TextBox2
TextBox1 TextBox3
GroupBox2
GroupBox1
CheckBox1
RadioButton1
CheckBox2
RadioButton2
CheckBox3
RadioButton3
CheckBox4
RadioButton4
CheckBox5
Label1 TextBox1
Label2
Button1
TextBox2
Chapter 3:
Radio Buttons and CheckBoxes Manipulation
Chapter 3:
Radio Buttons and CheckBoxes Manipulation
For RadioButton Code:
Private Sub RadioButton1_CheckedChanged(sender As System.Object, e As System.EventArgs) Handles
RadioButton1.CheckedChanged
TextBox1.Text = "BSIT"
End Sub
End Sub
Chapter 3:
Changing the Label Using Code
Label1
Label2
Button
Chapter 3:
Changing the Label Using Code
Chapter 3:
Changing the Label Using Code
End Sub
Chapter 3:
Program Using Listbox
ListBox1
Label1
Button
Chapter 3:
Program Using Listbox
Chapter 3:
Program Using Listbox
Choice = ListBox1.Text
If Choice = "LANCE" Then
Label1.Text = "LANCE MABUHAY!"
ElseIf Choice = "FREDRIN" Then
Label1.Text = "FREDRIN MABUHAY!"
ElseIf Choice = "GUSION" Then
Label1.Text = "GUSION MABUHAY!"
ElseIf Choice = "LAYLA" Then
Label1.Text = "LAYLA MABUHAY!"
Else
Label1.Text = "PLEASE CHOICE FROM LIST BOX!"
End If
End If
End Sub
Chapter 3:
Program for Check Box
Label1
CheckBox
Chapter 3:
Program for Check Box
Chapter 3:
Program for Check Box
End Sub
Chapter 3:
Exercises #1
Chapter 3:
Exercises #1