how to insert sound in visual basic.net?
398314
The two ways to play sound in Windows Forms applications .\nUse the Windows API directly or to add the Windows Media\nPlayer COM control. For both of these, you'll need to leave your files\noutside the .exe. There is no problem embedding the sound files as\nresources. The problem comes from the fact that the API function and the WMP\nmethods require a file reference rather than a stream. Here's some sample\ncode:\n\n' API Method\nPrivate Sub playWave_Click(ByVal sender As System.Object, ByVal e As\nSystem.EventArgs) Handles playWave.Click\n\nDim fileName As String = String.Concat(c_soundPath, "&#92;", waveList.Text)\nConst SND_FILENAME As Integer = &H20000\n\nPlaySound(fileName, 0, SND_FILENAME)\nEnd Sub\n\nPrivate Declare Auto Function PlaySound Lib "winmm.dll" (ByVal\nlpszSoundName As _\nString, ByVal hModule As Integer, ByVal dwFlags As Integer) As Integer\n\n' WMP Method\nPrivate Sub playMediaFile(ByVal mediaFileName As String)\nWith MediaPlayer\n.Stop()\n.FileName = String.Concat _\n(c_soundPath, "&#92;", _\nmediaFileName)\n.Play()\nEnd With\nEnd Sub\n\nHope this is helpful.
1183192
right click on ur text/image N go to "action settings" there u hav options like mouse click N mouse over.In tht select play sound. U can chose ur own .wmv sound too
614066
Just type "free .wav" into your search box and this will bring up lots of sites for sound effects. BTW you can't save anything on a computer unless you first download it first!\nGood luck.
633242
Here is a free version from Microsoft. It is not the full blown version, but does most everything.\n\nhttp://msdn.microsoft.com/vstudio/express/vb/\n\nThis will get the beginner started.
791942
First off, the program you designede in visual, are you running it in another visual basic program or are you importing it into another program.  Second, all you need to do to run the program by single key execution is to set the program to a macro.  For more detailed info go to the help section in visual (or press f1) and type in "macro".  Everything you need should be there.  You can send me a direct e-mail if you have any other issues the help won't help with (flyingrizzly@yahoo)
462406
Only a .wav file can be used unless you use some third party program.\n\nTo change the setting, goto your control panel, then 'sounds'.
1149611
Go to Control Planel>Sounds and Audio Devies>Check "Place volume icon on the taskbar" then press OKAY DONE\n\nNeo
285263
I assume you are running XP..\n\n\n1) Click START-> Control Panel -> Sound and Audio Devices\n2) click on the 'sounds' tab.\n3) From there you can select the event and assign a WAV \n   to that event. =)
943914
Open a New Blank Presentation-->New Slide--> Blank Slide.\n\nGo to Insert Menu --> Movies & Sounds --> Sounds From File-->\nWil give an alert message to play automatically or When Click On the Music--> Choose Ok,\nRight Click the sound object select edit object--> one more sub menu wil be dispalyed select Loop unitl while playing and Rewind/Repeat once done also
1175739
Sorry, this link is for C#\nhttp://www.codeproject.com/cs/media/tonysound.asp\nYou can find there, @codeproject, much more as e.g.\nhttp://www.codeproject.com/audio/fister.asp
1154972
Using the drop-down menus at the top of your PowerPoint editing screen, select "Insert" and then click "Movies and Sound". You can then select the source of your sound file "Sound from File". You will get asked if you want to start it Automatically or Mouse Click. This will put a small speaker on the screen. You can move this somewhere out of the way and will not actually show in your presentation (unless you selected the mouse click).  If you right-click the speaker, you can then edit the object. Here is where you can set it to loop until stopped and set the volume.
637995
control panel --> Sounds and audio devices --> check the checkbox to add it to the system tray ( If its already checked , uncheck the box and then apply that and then check it again and re apply it and it should appear )
1007377
Perhaps you need to embed a sound that has a url - that is to say that the file's path name should be http://www...\n\nCurrently it is embedded with a path name that is unique to your computer.\n\nPeace!
204091
you can get a free version of visual basic here\n\nhttp://msdn.microsoft.com/vstudio/express/default.aspx
212494
To insert music:\n1) Go to Insert, then point to Movies and Sounds.\n2a) Select Sound From File OR Record Sound (If you choose this go to 4)\n3) Select your sound and click insert.\n4) Press Record, record your sound, press stop, then select OK.\n5) Voila! Sound inserted!
375853
1- Go to your control panel\n2- Locate the Sounds and Multimedia icon, double click it\n3- under the Sounds tab, you will find a long list of sound events that you can click and change sounds associated to them from the bottom name drop down menu\n4- Before committing to a sound you can hear a preview by clicking the Play right arrow button beside it, \n5- click OK when you are done\n\nAmong those sound events are those related to maximizing your window, dragging, opening a program... etc which you can change or disable upon your wish.
1122941
Add, music, songs, or sound effects\n\nDisplay the slide to which you want to add music or sound effects. \nOn the Insert menu, point to Movies and Sounds, and then do one of the following: \nInsert a sound file\n\nClick Sound from File, locate the folder that contains the file that you want, and then double-click the file. \nInsert a sound clip from Clip Organizer\n\nClick Sound from Clip Organizer, scroll to find the clip that you want, and then click it to add it to the slide. \nNote  To search for clips in the Clip Organizer, fill in the Search for box, and then click Go. To get more information about finding the clip that you want, including details about finding files by using wildcard characters and about adding your own clips to the Clip Organizer, click Tips for finding clips at the bottom of the task pane.\n\nDouble-click the sound file that you want to insert.\nWhen a message is displayed, do one of the following: \nTo play the music or sound automatically when you go to the slide, click Automatically. \nTo play the music or sound only when you click the sound icon  , click When Clicked. \nTo adjust the settings for when the sound file stops, click the sound icon  , right-click, and then click Custom Animation. \nIn the Custom Animation task pane, click the arrow on the selected item in the Custom Animation list, and then click Effect Options. \nOn the Effect tab, under Stop playing, do one of the following: \nTo stop the sound file on mouse-click of this slide, select On click (the default). \nTo stop the sound file after this slide, select After current slide. \nTo keep the sound file playing for several slides, select After, and then set the total number of slides the file should play on. \n\n\n\nAnd for the Free Songs Try Using Limewire