
可参考:http://www.dngsos.com/dngsdnjc/
不懂追问
using Systemusing System.Collections.Generic
using System.ComponentModel
using System.Data
using System.Drawing
using System.Linq
using System.Text
using System.Windows.Forms
using System.Runtime.InteropServices
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent()
}
[DllImport("kernel32.dll")]
private static extern int Beep(int dwFreq, int dwDuration)
private void button1_Click(object sender, EventArgs e)
{
Beep(0X7FF, 1000)
}
}
}
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)