|
-
Oct 27th, 2001, 05:22 AM
#1
Thread Starter
New Member
get 'ping'-sound
I've made a program and if I want to change the focus from text1 to text 2 I do this:
--------------------
Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text2.SetFocus
End If
End Sub
--------------------
but when I press the enter key, I get a 'ping'-sound.
how can I make this disappear?
martijn
-
Oct 27th, 2001, 05:43 AM
#2
PowerPoster
Check your system sound settings. VB doesn't do this by itself, but perhaps you have a sound event set up which is raised in this instance.
Do you have a sound set up for all options in the sound menu?
-----------------------------------------
-RJ
[email protected]
-----------------------------------------
-
Oct 27th, 2001, 06:58 AM
#3
Thread Starter
New Member
I know why the sound commes but I hoped that I could make it disappear in the program without removing it from the sounds menu.
thanx for your reply anyway!
martijn
-
Oct 27th, 2001, 07:08 AM
#4
Addicted Member
if u wanna do it programatically then these 2 APIs must be of some help - GetLocaleInfo and SetLocaleInfo.
I've not tried this but I've changed date settings programatically through these API's. You may try further.
Bye.
-
Oct 27th, 2001, 08:10 AM
#5
Fanatic Member
Just change your code to this and it should work. (NB It's in a different event.)
VB Code:
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
KeyAscii = 0
Text2.SetFocus
End If
End Sub
Brian
(Fighting with the RightToLeft bugs in VS 2005)
-
Oct 27th, 2001, 08:14 AM
#6
Thread Starter
New Member
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
|