Results 1 to 3 of 3

Thread: Disable Tab to box?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    323
    How would I make a tab in a rich text box make an indention instead of moving to the next button?
    If you think education is expensive, try ignorance.

  2. #2
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Try This

    Try this code, it sends spaces, but it should work

    Code:
    Private Sub RichTextBox1_KeyDown(KeyCode As Integer, Shift As Integer)
    If KeyCode = 9 Then
      SendKeys "     "
      KeyCode = 0
    End If
    End Sub
    Hope this helps

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    323
    Perfect, thanks
    If you think education is expensive, try ignorance.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width