J
John Devlon
Hi,
I would like to check if a text field is empty; I'm using this code ...
Dim strTitle As String = String.Empty
Try
strTitle = Trim(txtTitle.Text)
Catch ex As Exception When strTitle = String.Empty
MessageBox.Show("error")
End Try
unfortunately, the exception doesn't work...
Anyone any idea's ?
Thanx
john
I would like to check if a text field is empty; I'm using this code ...
Dim strTitle As String = String.Empty
Try
strTitle = Trim(txtTitle.Text)
Catch ex As Exception When strTitle = String.Empty
MessageBox.Show("error")
End Try
unfortunately, the exception doesn't work...
Anyone any idea's ?
Thanx
john