Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1529

enable / disable backspace

$
0
0
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 1529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>