How would I make a tab in a rich text box make an indention instead of moving to the next button?
Printable View
How would I make a tab in a rich text box make an indention instead of moving to the next button?
Try this code, it sends spaces, but it should work
Hope this helpsCode:Private Sub RichTextBox1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 9 Then
SendKeys " "
KeyCode = 0
End If
End Sub
Perfect, thanks