Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles Button1.Click
If TextBox1.Text = StrReverse(TextBox1.Text) Then
Label2.Text = TextBox1.Text + " is a palindrome."

Else
Label2.Text = TextBox1.Text + " is not a palindrome."
End If
End Sub
End Class

You might also like