Showing posts with label year level in visual basic net. Show all posts
Showing posts with label year level in visual basic net. Show all posts

Saturday, October 28, 2017

College Year Level Checker Using Visual Basic NET

In this article I would like to share with you a simple program that I wrote using Visual Basic NET to ask the user to give the year level of the students using if else statement in Visual Basic NET. I hope you will find my work useful.

I am currently accepting programming work kindly contact me in the following email address for further details. Thank you.

My email address are the following jakerpomperada@gmail.com and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental is (034) 4335675.








Sample Program Output


Program Listing


Public Class Form1

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        TextBox1.Text = ""
        TextBox1.Focus()
    End Sub

    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
        End
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim year_level As String
        Dim value_level As Integer

        year_level = TextBox1.Text
        value_level = Int32.Parse(year_level)

        If value_level = 1 Then
            MessageBox.Show("You care belong to Freshmen.")
        ElseIf value_level = 2 Then
            MessageBox.Show("You are belong to Sophomore.")
        ElseIf value_level = 3 Then
            MessageBox.Show("You are belong to Juniors.")
        ElseIf value_level = 4 Then
            MessageBox.Show("You are belong to Seniors.")
        Else
            MessageBox.Show("Invalid Year Level Please Try Again.")
        End If
    End Sub
End Class