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

Slip No 1


Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim s As String
        Dim r As String
        s = TextBox1.Text
        r = StrReverse(s)
        If s = r Then
            MessageBox.Show("Enterd String is Palindrome")
        Else
            MessageBox.Show("Enterd String is Not Palindrome")
        End If
    End Sub
End Class

Comments

Post a Comment

Popular posts from this blog

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.

Write a Vb.net program for blinking an image.