我想实现的效果很简单  可是由于我没有接触过自定义控件(由web改为Winform 感觉Winform太好了一直会坚持下去 不管道路怎么艰难) 一点思路没有 欢迎大家给出建议 。要的效果和很多软件的声音控制软件差不多 。比如WindowsMediaPlayer,QQ音乐 酷狗音乐 ,酷我音乐盒。
当然这是举例子  还有是进度显示的控件  希望给出一个  我好好的学习  或者给出思路 感谢不尽的。

解决方案 »

  1.   

    DllImport("winmm.dll",   SetLastError=true,   CallingConvention=CallingConvention.Winapi)]   
      public   static   extern   int   waveOutSetVolume(int   uDeviceID,   int   dwVolume);  
    trackBar
      

  2.   

    第一种方法:
                     利用API播放声音文件using System.Runtime.InteropServices; 在调用API时先引用  
    [DllImport("winmm")]
    public static extern bool PlaySound(string szSound, IntPtr hMod, int i);   //声明API:PlaySound调用:PlaySound(@"声音文件路径",IntPtr.Zero,1);第二种方法:
                     利用windows media player播放声音System.Media.SoundPlayer media = new System.Media.SoundPlayer(@"声音文件路径");
    mdeia.Play();
      

  3.   

    三楼的大哥 你看清问题没有  我所有功能已完成 并且用的是系统API  现在任务是:对控件的美化  。
     不知道对哪个个控件  或者自己美化怎么弄? 不过还是感谢你 能回答。
      

  4.   

    就是对音量调节的控件 怎么弄  trackBar 我早就考虑了 这个控件的问题是鼠标点击一个位置时候有时候不移动到点击的位置。