Hello
I was trying to send a backspace
can i do it using sendkey
something like sendkey asicc_value(8) since ascii value 8 is backspace?
Printable View
Hello
I was trying to send a backspace
can i do it using sendkey
something like sendkey asicc_value(8) since ascii value 8 is backspace?
sure you could
text1.SetFocus
SendKeys Chr(8)
or you could do this:
VB Code:
If text1.SelStart > 0 Then tmp = text1.SelStart text1 = Left(text1, text1.SelStart - 1) & Right(text1, Len(text1) - text1.SelStart) text1.SelStart = tmp - 1 text1.SetFocus End If
more code.. but it works also
hey the backspace is taking out the whole textbox, can i not get it to take out just the last typed in character
i tried
VB Code:
txtBSrxsens1_2BPSK.SelStart = Len(txtBSrxsens1_2BPSK) SendKeys Chr(8)
but that did not work either, just wiped out the whole textbox :(
This seems to work pretty well for me.
VB Code:
Private Sub Command1_Click() Text1.SetFocus Text1.SelStart = Len(Text1.Text) SendKeys Chr(8) End Sub
HTH
i did
VB Code:
txtBSrxsens1_2BPSK.setfocus txtBSrxsens1_2BPSK.SelStart = Len(txtBSrxsens1_2BPSK) SendKeys Chr(8)
for some time i was getting the same problem, but now it seems to be working fine!!!!