Visual basic 2005 sound midi mp3 or wav files?How would I incorporate sound into a program? For instance a starting form then within the body of the program? Would I need to use a timer or is a midi file usable as it is? © 2009 Microsoft Corporation. Todos los derechos reservados.Sat, 28 Jun 2008 18:14:54 Z3eccdee1-4589-468b-9cae-dd60645fc299http://social.msdn.microsoft.com/Forums/es-ES/vbgeneral/thread/3eccdee1-4589-468b-9cae-dd60645fc299#3eccdee1-4589-468b-9cae-dd60645fc299http://social.msdn.microsoft.com/Forums/es-ES/vbgeneral/thread/3eccdee1-4589-468b-9cae-dd60645fc299#3eccdee1-4589-468b-9cae-dd60645fc299turkeygizzardhttp://social.msdn.microsoft.com/Profile/es-ES/?user=turkeygizzardVisual basic 2005 sound midi mp3 or wav files?How would I incorporate sound into a program? For instance a starting form then within the body of the program? Would I need to use a timer or is a midi file usable as it is? Mon, 23 Jun 2008 19:17:57 Z2008-06-23T19:17:57Zhttp://social.msdn.microsoft.com/Forums/es-ES/vbgeneral/thread/3eccdee1-4589-468b-9cae-dd60645fc299#7c97a7cd-fe66-49a5-8a77-09a10e65c6a7http://social.msdn.microsoft.com/Forums/es-ES/vbgeneral/thread/3eccdee1-4589-468b-9cae-dd60645fc299#7c97a7cd-fe66-49a5-8a77-09a10e65c6a7Bingo_HBhttp://social.msdn.microsoft.com/Profile/es-ES/?user=Bingo_HBVisual basic 2005 sound midi mp3 or wav files?<p>Hallo</p> <p>bin gerade selbst auf der Suche, hab dabei diese Seite gefunden:<br><br> <a href="http://msdn.microsoft.com/de-de/library/bb978298.aspx">http://msdn.microsoft.com/de-de/library/bb978298.aspx</a><br><br><br>Mal sehen, ob ich die Beispiele (auf den Nachbarseiten) anwenden kann.<br><br>Gruß<br>Bingo_hb</p>Sat, 28 Jun 2008 08:48:21 Z2008-06-28T08:48:21Zhttp://social.msdn.microsoft.com/Forums/es-ES/vbgeneral/thread/3eccdee1-4589-468b-9cae-dd60645fc299#7aaca9f1-81e0-4d90-b4ef-dd5ec60337a4http://social.msdn.microsoft.com/Forums/es-ES/vbgeneral/thread/3eccdee1-4589-468b-9cae-dd60645fc299#7aaca9f1-81e0-4d90-b4ef-dd5ec60337a4John Anthony Oliverhttp://social.msdn.microsoft.com/Profile/es-ES/?user=John%20Anthony%20OliverVisual basic 2005 sound midi mp3 or wav files?Hi ALL,<div><br></div><div>Here is a rough translation of the above using  <a href="http://www.freetranslation.com/" title="http://www.freetranslation.com/">http://www.freetranslation.com/</a> &gt;&gt;&gt;&gt;</div><div><br></div><div><br></div><div><font class=Apple-style-span style="white-space:pre-wrap" face=Arial>___________________________________________________</font><br></div><div><font class=Apple-style-span style="white-space:pre-wrap" face=Arial><font class=Apple-style-span style="background-color:rgb(51, 255, 255)">Hello Am just even on the search, found at the same time this side: <span class=Apple-style-span style="font-family:Verdana;white-space:normal"><a href="http://msdn.microsoft.com/de-de/library/bb978298.aspx" title="http://msdn.microsoft.com/de-de/library/bb978298.aspx"><span class=Apple-style-span style="font-weight:bold">http://msdn.microsoft.com/de-de/library/bb978298.aspx</span></a></span></font></font></div><div><br></div><div><font class=Apple-style-span style="white-space:pre-wrap" face=Arial><font class=Apple-style-span style="background-color:rgb(51, 255, 255)"><span class=Apple-style-span style="font-family:Verdana;white-space:normal">See time whether I can use the examples (on the neighbor sides). Greeting Bingo_hb</span></font></font><br></div><div><font class=Apple-style-span style="white-space:pre-wrap" face=Arial>___________________________________________________</font></div><div><br></div><div><font class=Apple-style-span style="white-space:pre-wrap" face=Arial><br></font></div><div><font class=Apple-style-span style="white-space:pre-wrap" face=Arial><br></font></div><div><font class=Apple-style-span style="white-space:pre-wrap" face=Arial><br></font></div><div><font class=Apple-style-span style="white-space:pre-wrap" face=Arial>Regards,</font></div><div><font class=Apple-style-span style="white-space:pre-wrap" face=Arial><br></font></div><div><font class=Apple-style-span style="white-space:pre-wrap" face=Arial>John</font></div><div><font class=Apple-style-span style="white-space:pre-wrap" face=Arial><br></font></div>Sat, 28 Jun 2008 09:23:37 Z2008-06-28T09:24:46Zhttp://social.msdn.microsoft.com/Forums/es-ES/vbgeneral/thread/3eccdee1-4589-468b-9cae-dd60645fc299#4bf845a7-f4a3-478c-aeaf-dcd8e598b16bhttp://social.msdn.microsoft.com/Forums/es-ES/vbgeneral/thread/3eccdee1-4589-468b-9cae-dd60645fc299#4bf845a7-f4a3-478c-aeaf-dcd8e598b16bJohn Anthony Oliverhttp://social.msdn.microsoft.com/Profile/es-ES/?user=John%20Anthony%20OliverVisual basic 2005 sound midi mp3 or wav files?<font><div><font class=Apple-style-span><div style="">Hi Microsoft staff,</div><div style=""><br></div><div style=""><br></div><div style="">Can we have this article in ENGLISH <font class=Apple-style-span style="text-decoration:underline">please</font>?</div><div style=""><br></div><div style="">I've tried.&gt;&gt;</div><div style=""><br></div><div style="text-decoration:underline"><font class=Apple-style-span style="text-decoration:underline"><a href="http://msdn.microsoft.com/en-us/library/bb978298.aspx" title="http://msdn.microsoft.com/en-us/library/bb978298.aspx">http://msdn.microsoft.com/</a></font><font class=Apple-style-span size=7 style=""><font class=Apple-style-span style="background-color:rgb(255, 255, 0)"><a href="http://msdn.microsoft.com/en-us/library/bb978298.aspx" title="http://msdn.microsoft.com/en-us/library/bb978298.aspx">en-us</a></font></font><font class=Apple-style-span style="text-decoration:underline"><a href="http://msdn.microsoft.com/en-us/library/bb978298.aspx" title="http://msdn.microsoft.com/en-us/library/bb978298.aspx">/library/bb978298.aspx</a></font><br></div></font></div></font><div><br></div><div>and</div><div><font><a href="http://msdn.microsoft.com/en-gb/library/bb978298.aspx" title="http://msdn.microsoft.com/en-gb/library/bb978298.aspx">http://msdn.microsoft.com/<font class=Apple-style-span size=7><font class=Apple-style-span style="background-color:rgb(255, 255, 0)">en-gb</font></font>/library/bb978298.aspx</a></font></div><div><br><div>and</div><div><br></div><div><a href="http://msdn.microsoft.com/en-au/library/bb978298.aspx" title="http://msdn.microsoft.com/en-au/library/bb978298.aspx">http://msdn.microsoft.com/<font class=Apple-style-span size=7><font class=Apple-style-span style="background-color:rgb(255, 255, 0)">en-au</font></font>/library/bb978298.aspx</a><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><font class=Apple-style-span style="white-space:pre" face="'Lucida Grande'">Regards,</font></div><div><font class=Apple-style-span style="white-space:pre" face="'Lucida Grande'"><br></font></div><div><font class=Apple-style-span style="white-space:pre" face="'Lucida Grande'">John</font></div><div><span class=Apple-style-span style="font-family:'Lucida Grande';white-space:pre"><br></span></div><div><font class=Apple-style-span style="white-space:pre" face="'Lucida Grande'"><br></font></div></div>Sat, 28 Jun 2008 09:33:00 Z2008-06-28T09:48:23Zhttp://social.msdn.microsoft.com/Forums/es-ES/vbgeneral/thread/3eccdee1-4589-468b-9cae-dd60645fc299#8a554878-030d-44b0-8332-176dd30a6761http://social.msdn.microsoft.com/Forums/es-ES/vbgeneral/thread/3eccdee1-4589-468b-9cae-dd60645fc299#8a554878-030d-44b0-8332-176dd30a6761John Anthony Oliverhttp://social.msdn.microsoft.com/Profile/es-ES/?user=John%20Anthony%20OliverVisual basic 2005 sound midi mp3 or wav files?Hi,<div><br></div><div>This is how to play WAVE *.wav files.</div><div><div><br></div><div>Choose between;</div><div><br></div><div><font class=Apple-style-span style="background-color:rgb(51, 255, 51)">My.Computer.Audio.Play(ofd.FileName, AudioPlayMode.<font class=Apple-style-span style="font-weight:bold"><font class=Apple-style-span style="background-color:rgb(51, 255, 255)">Background</font></font>)</font><br></div><div><br></div><div>or</div><div><br></div><div><font class=Apple-style-span style="background-color:rgb(153, 255, 153)">My.Computer.Audio.Play(ofd.FileName, AudioPlayMode.</font><font class=Apple-style-span style="font-weight:bold"><font class=Apple-style-span style="background-color:rgb(51, 255, 255)">BackgroundLoop</font></font>)<br></div><div><br></div><div>or</div><div><br></div><div><font class=Apple-style-span style="background-color:rgb(51, 255, 51)">My.Computer.Audio.Play(ofd.FileName, AudioPlayMode.<font class=Apple-style-span style="font-weight:bold"><font class=Apple-style-span style="background-color:rgb(51, 255, 255)">WaitToComplete</font></font>)</font><br></div><div><br></div><div><br></div><div>This works with Windows XP. :-) ;-)</div><div><br></div><div>I'm not sure if VISTA still has a <font class=Apple-style-span style="background-color:rgb(255, 255, 0)">media</font> folder containing WAVE files.</div><div><br></div><div><font class=Apple-style-span style="font-weight:bold"><font class=Apple-style-span style="background-color:rgb(255, 255, 0)"><font class=Apple-style-span style="text-decoration:underline">Add 1 button</font></font></font> to a FORM to try this code please.</div><div><br></div><div><span class=Apple-style-span style="font-weight:bold"><span class=Apple-style-span style="text-decoration:underline">ofd.FileName</span></span> here is <span class=Apple-style-span style="text-decoration:underline">the full path and filename</span> returned from the OpenFileDialog.</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><div><font class=Apple-style-span style="background-color:rgb(204, 255, 255)">Option Strict On</font></div><div><font class=Apple-style-span style="background-color:rgb(204, 255, 255)"><br></font></div><div><font class=Apple-style-span style="background-color:rgb(204, 255, 255)">Public Class Form1</font></div><div><font class=Apple-style-span style="background-color:rgb(204, 255, 255)"><br></font></div><div><font class=Apple-style-span style="background-color:rgb(204, 255, 255)">Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click</font></div><div><font class=Apple-style-span style="background-color:rgb(204, 255, 255)"><br></font></div><div><font class=Apple-style-span style="background-color:rgb(204, 255, 255)">Dim ofd As New OpenFileDialog</font></div><div><font class=Apple-style-span style="background-color:rgb(204, 255, 255)">ofd.InitialDirectory = &quot;C:\Windows\</font><font class=Apple-style-span style="background-color:rgb(255, 255, 0)">media</font><font class=Apple-style-span style="background-color:rgb(204, 255, 255)">&quot;</font></div><div><font class=Apple-style-span style="background-color:rgb(204, 255, 255)">ofd.Filter = &quot;Wave files only|*.wav&quot;</font></div><div><font class=Apple-style-span style="background-color:rgb(204, 255, 255)">Try</font></div><div><font class=Apple-style-span style="background-color:rgb(204, 255, 255)">ofd.ShowDialog()</font></div><div><br></div><div>My.Computer.Audio.Play(<span class=Apple-style-span style="font-weight:bold">ofd.FileName</span>, AudioPlayMode.<font class=Apple-style-span style="font-weight:bold"><font class=Apple-style-span style="background-color:rgb(51, 255, 255)">Background</font></font>)<br></div><div><br></div><div><font class=Apple-style-span style="background-color:rgb(204, 255, 255)">Catch ex As Exception</font></div><div><font class=Apple-style-span style="background-color:rgb(204, 255, 255)">MessageBox.Show(ex.ToString)</font></div><div><font class=Apple-style-span style="background-color:rgb(204, 255, 255)">End Try</font></div><div><font class=Apple-style-span style="background-color:rgb(204, 255, 255)"><br></font></div><div><font class=Apple-style-span style="background-color:rgb(204, 255, 255)">End Sub</font></div><div><font class=Apple-style-span style="background-color:rgb(204, 255, 255)">End Class</font></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>Regards,</div><div><br></div><div>John</div><div><br></div></div></div>Sat, 28 Jun 2008 10:07:38 Z2008-06-28T10:10:01Zhttp://social.msdn.microsoft.com/Forums/es-ES/vbgeneral/thread/3eccdee1-4589-468b-9cae-dd60645fc299#f16ae6c6-0290-4633-9711-2130bb8132a5http://social.msdn.microsoft.com/Forums/es-ES/vbgeneral/thread/3eccdee1-4589-468b-9cae-dd60645fc299#f16ae6c6-0290-4633-9711-2130bb8132a5turkeygizzardhttp://social.msdn.microsoft.com/Profile/es-ES/?user=turkeygizzardVisual basic 2005 sound midi mp3 or wav files? danke shein<br><br>I only know how to spaek a few words in German.  Thankyou for your help but I wasn't able to view the library yet.  Thanks anyway I appreciate all the help I can get!!!<br><br><br>~turkey~Sat, 28 Jun 2008 18:11:20 Z2008-06-28T18:11:20Zhttp://social.msdn.microsoft.com/Forums/es-ES/vbgeneral/thread/3eccdee1-4589-468b-9cae-dd60645fc299#dec7a6e9-0428-46fb-859a-e3004c170e52http://social.msdn.microsoft.com/Forums/es-ES/vbgeneral/thread/3eccdee1-4589-468b-9cae-dd60645fc299#dec7a6e9-0428-46fb-859a-e3004c170e52turkeygizzardhttp://social.msdn.microsoft.com/Profile/es-ES/?user=turkeygizzardVisual basic 2005 sound midi mp3 or wav files? Thankyou John I appreciate your help.  I'm really interested in midi files right now.  I will look at the url you gave but it has to be in English!!! Thankyou so much for your help.<br><br><br>~turkey~Sat, 28 Jun 2008 18:13:29 Z2008-06-28T18:13:29Z