Music Concept

July 18, 2008 at 3:37 am (Achievement, Concepts, Obstacles) (, , )

Well, after sharing my little secret on how to add music and video with ease, i decided to add some background music into my program. to do this i need a form that will always be “hiden” i.e: always at the back of any other form. after this i can use my web browser to play music from a specific file that will naturally loop throughout the whole program.

This the implementation of background music i thought that it would be appropriate to include a mute and unmute button in my side bar menu; meaning an extra  2 functionality buttons!

in order to achieve a mute and unmute button, instead of actually doing what it says to do, because my music is within a web browser, if i change the url of the web browser, then the music would “stop” and if i re assign the url back to the music’s file path, it would seem to continue playing the music.. a much easier solution compared to actually using the difficult coding of changing the computers master volume!

another genuis short cut when using a web browser!

———— code————-

Private Sub mutevolume_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles

mutevolume.Click

Dim navmute As String = “”

musicbackgroundweb.musicmaker.Navigate(navmute)

End Sub

Private Sub about_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles

about.ClickAboutfbiic.Show()

 End Sub

Post a Comment