<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Newbie Question: How to put sound effect on a buttons?' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Newbie Question: How to put sound effect on a buttons?' posted on the 'VB.NET' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2012 Programmers Heaven</copyright>
    <pubDate>Thu, 09 Feb 2012 15:42:33 -0800</pubDate>
    <lastBuildDate>Thu, 09 Feb 2012 15:42:33 -0800</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Newbie Question: How to put sound effect on a buttons?</title>
      <link>http://www.programmersheaven.com/mb/VBNET/409014/409014/newbie-question-how-to-put-sound-effect-on-a-buttons/</link>
      <description>I want to learn more... Please help me..&lt;br /&gt;
&lt;br /&gt;
Im using VB 2008 Express Edition right now&lt;br /&gt;
but VB.Net is also acceptable. please help me....&lt;br /&gt;
&lt;br /&gt;
Thanks a lot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/409014/409014/newbie-question-how-to-put-sound-effect-on-a-buttons/</guid>
      <pubDate>Tue, 10 Nov 2009 04:07:07 -0800</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Re: Newbie Question: How to put sound effect on a buttons?</title>
      <link>http://www.programmersheaven.com/mb/VBNET/409014/409015/re-newbie-question-how-to-put-sound-effect-on-a-buttons/#409015</link>
      <description>forgive my English^^</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/409014/409015/re-newbie-question-how-to-put-sound-effect-on-a-buttons/#409015</guid>
      <pubDate>Tue, 10 Nov 2009 04:09:04 -0800</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Re: Newbie Question: How to put sound effect on a buttons?</title>
      <link>http://www.programmersheaven.com/mb/VBNET/409014/409046/re-newbie-question-how-to-put-sound-effect-on-a-buttons/#409046</link>
      <description>Try this, it makes a Alien sound when the mouse enters the Button1... you can attach this to any mouse event..&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;Public Class Form1
    'The following code creates a Point array to play a simple melody:
    Dim soundsAlien As Point() = {New Point(932, 500), New Point(1047, 500), New Point(831, 500), New Point(415, 500), New Point(622, 900)}
    Private Sub Button1_MouseEnter(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.MouseEnter
        PlayTones(soundsAlien)
    End Sub
    Public Sub PlayTones(ByVal toneArray() As Point)
        ' ----- Play a set of tones, one after another.
        Dim frequency As Integer
        Dim duration As Integer
        For Each tone As Point In toneArray
            frequency = tone.X
            duration = tone.Y
            Console.Beep(frequency, duration)
        Next tone
    End Sub
End Class&lt;/pre&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/409014/409046/re-newbie-question-how-to-put-sound-effect-on-a-buttons/#409046</guid>
      <pubDate>Tue, 10 Nov 2009 14:15:01 -0800</pubDate>
      <category>VB.NET</category>
    </item>
  </channel>
</rss>
