Write a Vb.net program to accept a character from keyboard and check whether it is vowel or not. Also display the case of that character.

Slip10

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim ch As Char
        ch = TextBox1.Text
        Select Case ch
            Case "A", "E", "I", "O", "U"
                MessageBox.Show(ch + " is Vowel And UpperCase")
            Case "a", "e", "i", "o", "u"
                MessageBox.Show(ch + " is Vowel And LowerCase")
            Case Else
                MessageBox.Show(ch + " is Not Vowel")
        End Select
    End Sub
End Class

Comments

Post a Comment

Popular posts from this blog

Write a Vb.net program to check whether entered string is palindrome or not.

Write a Vb.net program for blinking an image.