Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Accessing Resources
 

Accessing Resources

I added the AxWindowsMediaPlayer control to my form but I can't get it to play any of my .wav resources.
Trickybomb  Saturday, July 07, 2007 3:27 AM

Hi,you can follow this small sample

using System.Media;
SoundPlayer sp;
sp = new SoundPlayer(Application.StartupPath + @"\0037.wav");
sp.PlayLooping();

For more information ,check following article

http://msdn2.microsoft.com/en-us/library/ms748870.aspx

https://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1544238&SiteID=1

With Regards

Gavin Jin - MSFT  Wednesday, July 11, 2007 9:21 AM

Hi,you can follow this small sample

using System.Media;
SoundPlayer sp;
sp = new SoundPlayer(Application.StartupPath + @"\0037.wav");
sp.PlayLooping();

For more information ,check following article

http://msdn2.microsoft.com/en-us/library/ms748870.aspx

https://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1544238&SiteID=1

With Regards

Gavin Jin - MSFT  Wednesday, July 11, 2007 9:21 AM

You can use google to search for other answers

Custom Search

More Threads

• Could not load file or assembly Interop.SHDocVw
• Autoscroll issues in tabControl
• A component does not recognize if it is in design mode!, a bug?
• ideas for composite control (is this possible?)
• Custom Groupbox/Pane Control
• VS 2008 is worse than 2005?! :( - designer
• ToolBox Tab
• Properties bar doesn't work
• windows control library developed in vb.net(window application) can be used in asp.net(web application)
• How create nested namespace?