using System.Runtime.InteropServices;
[DllImport("KERNEL32.DLL",
EntryPoint="Beep",SetLastError=true,CharSet=CharSe t.Unicode,
ExactSpelling=true,CallingConvention=CallingConven tion.StdCall)]
public static extern bool Beep(int x,int y);
//you code
Beep(500,1000); //500 and 1000 are number of pitch, and duration
--
Rami Saad
Microsoft GTSC Developer support for Middle East
"Hai Ly Hoang" <No*****@Mail.com> wrote in message
news:eB**************@TK2MSFTNGP12.phx.gbl...
Hi,
I want to make a beep from PC speaker (like C++ beep(), not a beep from
sound-card).
How to do that ?
Thanks