The error I'm getting is ('Catch' cannot appear outside of a 'Try' statement)
It looks to me like it isn't...
VB, 2010 if you're wandering.
It looks to me like it isn't...
Code:
Public Class Form1
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
If TextBox1.Text = TextBox2.Text Then
Me.Hide()
black.Show()
My.Settings.Password = TextBox2.Text
Else
MessageBox.Show("Passwords do not match!")
End If
Catch ex As Exception
MessageBox.Show(ex.ToString)
End Try
End Sub
End Class