08-30-2012, 08:19 PM
Do a little something like this:
[code2=vbnet]Private Sub TextBoxCard_LostFocus(sender As Object, e As System.EventArgs) Handles TextBoxCard.LostFocus
Try
TextBoxCard.Text = CF.GetFormattedString(ComboBoxCardType.Text, TextBoxCard.Text)
Catch ex As Exception
'If the code has reached here, an error has occured. We'll just ignore it.
End Try
End Sub[/code2]
[code2=vbnet]Private Sub TextBoxCard_LostFocus(sender As Object, e As System.EventArgs) Handles TextBoxCard.LostFocus
Try
TextBoxCard.Text = CF.GetFormattedString(ComboBoxCardType.Text, TextBoxCard.Text)
Catch ex As Exception
'If the code has reached here, an error has occured. We'll just ignore it.
End Try
End Sub[/code2]