Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Eliminating the bleep
#1
I have a text-box on the game screen, you type into it, press enter, and wa-la! Your text appears on the chat box.

Annoying thing is, every time you press enter... "BLEEP!"

How do I stop the bleep sound from playing every time I press the enter button on the text-box?

Thanks.
Reply
#2
I believe you just have to set the key identifier parameter (keycode or whatever the hell the name of it is) for the textbox's KeyDown (or is it KeyPress) to 0 at the end of the method.
Reply
#3
When you clear the textbox in HandleKeyPresses or w/e, setfocus to picScreen.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#4
:evil:
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#5
Code:
Private Sub txtCommand_KeyPress(KeyAscii As Integer)
    Call HandleKeypresses(KeyAscii)
    If KeyAscii = vbKeyReturn Then
        KeyAscii = 0
    End If
End Sub

worked nicely, thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)