I want to exchange the functioning of backspace and delete key e-g if i press backspace it should delete the character on the right side of cursor and vicee versa for delete key. How can i implement this in rtb?
to be honest, i think you're going to have to hook into the rtb proc and change the key inputs to bamboozle the rtb into thinking you sent it a delete key instead of a backspace and vice versa.
Uh...
Private Sub RichTextBox1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyBack Then
KeyCode = vbKeyDelete
ElseIf KeyCode = vbKeyDelete Then
KeyCode = vbKeyBack
End If
End Sub
or i guess that will work too :X
Thnx I'll check that
yeah.....it worked. thnx a lot.