Quantcast
Viewing all articles
Browse latest Browse all 1448

enable / disable backspace

I guys ..... plz solve my prob.

I have a textbox .... and in text change event i put following code :
Code:

If Len(Trim(txtTyping.Text)) > 0 Then
        If KeyAscii = 8 Then
            If Asc(Right(txtTyping.Text, 1)) = 32 Then
                KeyAscii = 0
            Else
                KeyAscii = KeyAscii
            End If
        End If
    End If

By this code i disable the backspace after space. However, i need that user may be allow to use backspace after space also. For this, i want add a command button to Enable / Disable backspace.
Please guide how to implement this
Thanks in advance :

Viewing all articles
Browse latest Browse all 1448

Trending Articles