Results 1 to 2 of 2

Thread: It beeps

  1. #1

    Thread Starter
    Lively Member J Lindroos's Avatar
    Join Date
    Mar 2001
    Location
    Sweden
    Posts
    97

    Angry It beeps

    When I use .SetFocus on a textbox or commandbutton, then computer beeps, like if you go Beep. This is the code for one of the times:

    Code:
    Private Sub Text1_KeyUp() 
       If KeyCode=13 Then
           Text2.SetFocus
           Text2.SelStart=0
           Text2.SelLength=Len(Text2.Text)
            KeyCode=0
       End If
    End Sub
    This is it, and now it beeps.
    /J Lindroos
    "My opinions may be have changed, but not the fact that I am right"


    <modified by admin. no advertising in sigs>

  2. #2
    Frenzied Member axion_sa's Avatar
    Join Date
    Jan 2002
    Location
    Joburg, RSA
    Posts
    1,724
    Try using the KeyPress event.

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