|
-
Sep 29th, 2000, 10:51 PM
#1
Thread Starter
New Member
I have coded a Keypress event that allows the user to press
the enter key rather than the tab key to move to the next
textbox. The cursor moves to the next textbox and the previous input is displayed in a picturebox--but I still
get the default sound which makes the user think they have
made an error. How do I manipulate sounds? I have asked my
instructor and he gave me 2 books to look for an answer, but neither of them address this (or at least I couldn't find anything). Help, please!
-
Sep 29th, 2000, 10:57 PM
#2
Frenzied Member
is this what you need:
that creates the WINDOWS beep sound (the sound that comes along with a message box)
NXSupport - Your one-stop source for computer help
-
Sep 30th, 2000, 05:34 AM
#3
Hyperactive Member
Do you want to remove the beep or play a sound ?
Visual Basic 6 SP4 on win98se
QUIT THE RAT RACE BECAUSE YOUR MESSING THE WORLD UP !!!!!
-
Oct 12th, 2000, 03:05 PM
#4
Addicted Member
Keypress beep
That beep is caused during the keypress because the KeyAscii value creates a beep automatically if it isn't set to 0 or NULL before the end of your sub.
I tried something similar and it drove me nuts too. I dont remember where I found that out, but if you use
KeyAscii=0
before the end of your sub you'll be fine.
Eiredrake
-
Oct 22nd, 2003, 07:10 PM
#5
Hyperactive Member
Does this work If you didnt Use ascii to control the keys?
-
Oct 23rd, 2003, 02:41 AM
#6
Frenzied Member
Yeah, it will work....
VB Code:
If KeyAscii = 13 Then
KeyAscii = 0
OtherStuff("What", "Ever", "Else")
End If
That should make it go no Beepy.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|