Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
something easy, but i hink i am too stupid lol ^^
#1
yeah, as i said before its easy..i think^^:

so, when you press enter or attack someone, or cast a spell, there is always this windows sound: "ding"


how do i remove that :O, i wasnt able to find anythi ng related to that :S


thanks!
Reply
#2
Dave Wrote:
Code:
Private Sub txtName_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then
        Call picConnect_Click
        KeyAscii = 0  'The Magic line...
    End If
End Sub


sry to bump up this topic, but i forgot to read it xD

uhm... keyascii = 0 lets the sound play? but, what about attacking, i didnt find anything related to attacking or pressing enter or something esle
Reply
#3
Sorry - Didnt read the topic right xD
Reply
#4
Dave Wrote:If KeyAscii = 13 Then 'This means you press enter


Setting KeyAscii = 0 makes it NOT beep.

so i have to set all KeyAscii to = 0 and it doesnt beep?
Reply
#5
Dave Wrote:yeah


uhm..sure that if i change all the keyascii = something, to keyascii = 0 the game will still work properly?
Reply
#6
Dave Wrote:only change it in _KeyPress events, and only after you use it.

ahh, so in ever: _KeyPress sub i put keyascii = 0 ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)