473,420 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,420 software developers and data experts.

Key clicks possible? PC beep?

Anyone have any code that will sound a click from the PC speaker with
keystrokes?

Any easy way to get a beep out of the PC speaker (not through the sound
card)?
Thanks,

Ross
Nov 23 '05 #1
4 1772
Hi,

Maybe this will work

Private Sub Form1_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress
Beep()
End Sub

Ken
-------------------------------
"Ross" <Wo*****@sciential.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Anyone have any code that will sound a click from the PC speaker with
keystrokes?

Any easy way to get a beep out of the PC speaker (not through the sound
card)?
Thanks,

Ross

Nov 23 '05 #2
Note that this will only beep the speaker , if your computer does not have a
sound card installed
otherwise the call will be routed to the sound card to handle , well on my
computer the sound is in the evening turned to 0 ( hmm i even noticed it is
now also turned of ) so i will not here the beeps on my computer at all

regards

Michel Posseth
"Ken Tucker [MVP]" <vb***@bellsouth.net> schreef in bericht
news:Of**************@TK2MSFTNGP15.phx.gbl...
Hi,

Maybe this will work

Private Sub Form1_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress
Beep()
End Sub

Ken
-------------------------------
"Ross" <Wo*****@sciential.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Anyone have any code that will sound a click from the PC speaker with
keystrokes?

Any easy way to get a beep out of the PC speaker (not through the sound
card)?
Thanks,

Ross


Nov 23 '05 #3
"Ross" <Wo*****@sciential.net> schrieb:
Anyone have any code that will sound a click from the PC speaker with
keystrokes?

Any easy way to get a beep out of the PC speaker (not through the sound
card)?


\\\
Private Declare Function Beep Lib "kernel32.dll" ( _
ByVal dwFreq As Int32, _
ByVal dwDuration As Int32 _
) As Boolean
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 23 '05 #4
> Private Declare Function Beep Lib "kernel32.dll" ( _
ByVal dwFreq As Int32, _
ByVal dwDuration As Int32 _
) As Boolean


Try dwFreq in the range 40 to 400 and dwDuration 1.
Nov 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Leo | last post by:
hi there i want python to do a beep. in the docu i found in tkinter the method bell() but the script: import Tkinter Tkinter.bell() gives the error:
3
by: #Hai | last post by:
Hi, I want to throw out a series of 'beep..beep..beep' to the speaker. How to do that ? Thanks
4
by: Rich | last post by:
Hello, I want to use the Beep() to alert users about certain messages but in my workstation I can't get a sound out of it. But Beep works in VB6. What do I need to do? Sub... .... Beep()...
1
by: BerkshireGuy | last post by:
I have a several paged tab control on my form. On each page, there are several different controls. One page may have 5 controls and the other may have 10. Can I run specific code when one of...
6
by: fripper | last post by:
Is it possible to display a message box (using the MSGBOX function) without the beep? Thanks.
3
by: garyusenet | last post by:
I have a programme written in C++, the programme is unmanaged and is an executable, i don't have any source code. I'm writing a C# program. I want to (a) start the programme minimized. (b) send...
4
by: =?Utf-8?B?UmljaA==?= | last post by:
When I press the Enter key in a Textbox I get a beep sound. But when I press the Enter key in a combobox, I don't get the beep sound. Is there a way to suppress the beep? How to do this? ...
5
by: =?Utf-8?B?UmFmYWVs?= | last post by:
I'm studying C# (I've been a VB developer). I'm making some tests and I need to use Console.Beep(), but it doesn't make any sound, no matter if I try it in VS2008 beta or VS2005. Could anybody...
2
by: EManning | last post by:
I posted a question on 5/5/08 asking how to trap an error caused by multiple users trying to access the same patient. Here's what I posted: "Using A2003. I've got an FE with a main form with a...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.