不错,要想用Beep,得using System.Runtime.InteropServices;
在public class Form1 : System.Windows.Forms.Form
{
[DllImport("kernel32.dll")]
private static extern bool Beep( int frequency, int duration );
public class Form1 : System.Windows.Forms.Form
{
[DllImport("kernel32.dll")]
p
使用了,但是品牌机可能减配了机箱内喇叭。没有实现效果。
不错,要想用Beep,得using System.Runtime.InteropServices; 在public class Form1 : System.Windows.Forms.Form { [DllImport("kernel32.dll")] private static extern bool Beep( int frequency, int duration ); public class Form1 : System.Windows.Forms.Form { [DllImport("kernel32.dll")] p
还行,有点意思
仅仅只能参考
一般。比较初级。不是我想要的代码。
不是我想要的
不能正常运行!
说实话,不太好用
代码 运行不了 缺少DLL 程序跑不起来