473,662 Members | 2,704 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1784
Hi,

Maybe this will work

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

Ken
-------------------------------
"Ross" <Wo*****@scient ial.net> wrote in message
news:%2******** ********@TK2MSF TNGP12.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***@bellsout h.net> schreef in bericht
news:Of******** ******@TK2MSFTN GP15.phx.gbl...
Hi,

Maybe this will work

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

Ken
-------------------------------
"Ross" <Wo*****@scient ial.net> wrote in message
news:%2******** ********@TK2MSF TNGP12.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*****@scient ial.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.d ll" ( _
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.d ll" ( _
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
31812
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
3330
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
6875
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() For i = 0 to 100: Beep(): Next
1
1779
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 those controls on a particular page is clicked. I dont have to have to put code in each controls on click event and the Tabs Click event only fires when you click "outside" of the actual
6
8889
by: fripper | last post by:
Is it possible to display a message box (using the MSGBOX function) without the beep? Thanks.
3
3604
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 keystrokes to the programme, and mouse strokes. Can you please tell me how I would do this assuming the programme is called "c:\programme.exe"
4
9946
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? Thanks
5
29144
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 tell my some hint abouit it? -- Rafael
2
1520
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 subform. The subform is a mixture of bound and unbound fields. The main form is unbound and all it has on it is a combobox to choose a patient's name. Once the patient is chosen, the subform refreshes to show that patient's data. The problem...
0
8435
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8857
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8768
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8547
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8633
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7368
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5655
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4181
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4348
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.