473,320 Members | 2,027 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,320 software developers and data experts.

Beep

Jan
How I can make a beep in C#?

Thanks,

Jan.
Nov 15 '05 #1
7 2520
> How I can make a beep in C#?

use a tuning-fork to find A. then sing a note 4 semitones higher.

[DllImport("kernel32.dll")]
public static extern bool Beep(int freq,int duration);

Regards,
Wiktor


Nov 15 '05 #2
LOL

--
Cobus Lombard
Application Developer
Mint Net
South Africa

"Wiktor Zychla" <ie****@microsoft.com.no.spam> wrote in message
news:eL**************@TK2MSFTNGP09.phx.gbl...
How I can make a beep in C#?


use a tuning-fork to find A. then sing a note 4 semitones higher.

[DllImport("kernel32.dll")]
public static extern bool Beep(int freq,int duration);

Regards,
Wiktor

Nov 15 '05 #3
Console.WriteLine("\a");

"Jan" <an*******@discussions.microsoft.com> wrote in message
news:07****************************@phx.gbl...
How I can make a beep in C#?

Thanks,

Jan.

Nov 15 '05 #4
> How I can make a beep in C#?

use a tuning-fork to find A. then sing a note 4 semitones higher.

[DllImport("kernel32.dll")]
public static extern bool Beep(int freq,int duration);

Regards,
Wiktor


Nov 15 '05 #5
LOL

--
Cobus Lombard
Application Developer
Mint Net
South Africa

"Wiktor Zychla" <ie****@microsoft.com.no.spam> wrote in message
news:eL**************@TK2MSFTNGP09.phx.gbl...
How I can make a beep in C#?


use a tuning-fork to find A. then sing a note 4 semitones higher.

[DllImport("kernel32.dll")]
public static extern bool Beep(int freq,int duration);

Regards,
Wiktor

Nov 15 '05 #6
Thanks,

Jan.
-----Original Message-----
How I can make a beep in C#?

Thanks,

Jan.
.

Nov 15 '05 #7
Thanks,

Jan.
-----Original Message-----
How I can make a beep in C#?

Thanks,

Jan.
.

Nov 15 '05 #8

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
19
by: Anon Email | last post by:
Hi everyone, Let's see, now. This question is about the capabilities of ANSI C++. I want to write and compile code in ANSI C++ that, when compiled, will make the computer speaker beep; or, at...
8
by: Marcia Gulesian | last post by:
How can I create a beep in javascript (I.E. 5.5 +) ?
2
by: Hai Ly Hoang | last post by:
Hi, I want to make a beep from PC speaker (like C++ beep(), not a beep from sound-card). How to do that ? Thanks
4
by: Kartic | last post by:
Hi, My program needs to open another form(Form2) at form1 load. But Form2 always opens with a beep. How do I get rid of that beep. I tried to load form2 from Form1 activate also but with no...
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()...
4
by: adi | last post by:
Hi My application has many automatic features because it is designed to run without any user interfering. In fact, my app will work on a system without a keyboard or a mouse. Anyway, from time...
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.