新手,不懂怎么入手,请教各位了!
解决方案 »
- 异常
- C# 中怎么实现测网速,
- gridview我添加一个自定数据字段为什么老出错啊.高手们帮帮我啊
- 这个数据筛选如何做?急
- WinForm C#如何用一个按钮事件打开一个网页?
- .^^.开源:C#.NET开发的MIS打印程序,各种网格如DataGrid打印、DataTable、HtmlTable等二维形式全搞定,源码免费下载
- 散100分,求救
- DataGrid的一个实用问题
- 《asp.net 入门经典 c#编程篇》是beta2版的,影响我的学习不
- 天网防火墙的那个功能窗口是怎么用c#写才行啊?
- 弱弱的问下,textbox里面怎么同时显示字和图片?
- c# 如何在Form窗体上通过连接数据库而展示出条状图啊
public static extern int PlaySound(string szSound, IntPtr hModule, int flags);
public enum PlaySoundFlags : int
{
SND_SYNC = 0x0, // play synchronously (default)
SND_ASYNC = 0x1, // play asynchronously
SND_NODEFAULT = 0x2, // silence (!default) if sound not found
SND_MEMORY = 0x4, // pszSound points to a memory file
SND_LOOP = 0x8, // loop the sound until next sndPlaySound
SND_NOSTOP = 0x10, // don't stop any currently playing sound
SND_NOWAIT = 0x2000, // don't wait if the driver is busy
SND_ALIAS = 0x10000, // name is a registry alias
SND_ALIAS_ID = 0x110000,// alias is a predefined ID
SND_FILENAME = 0x20000, // name is file name
SND_RESOURCE = 0x40004, // name is resource name or atom
};
PlaySound("path", IntPtr.Zero, (int)(PlaySoundFlags.SND_FILENAME | PlaySoundFlags.SND_SYNC));