Results 1 to 1 of 1
  1. #1
    Zakoschris
    Zakoschris is offline
    Guest
    Join Date
    2013 Jan
    Posts
    2
    Thanks Thanks Given 
    1
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts
    Rep Power
    0

    Question Problems with music.

    Hello, I'am trying to find out how to make a visual studio program play music on start up. I also would like to add a little check box that pauses the music. Any kind of information would be great! I'am almost finished with my program. Google has been no help to me. I think google hates me.

    EDIT: I figured it out, However because the buttons on my program make noise the music stops when the button make a noise, Is there any way to fix this?

    This was my post from another forum but nobody was willing to help me.

    Here is the source:
    PHP Code:
    Public Class Form1

        
    Private Sub Button2_Click(sender As ObjectAs EventArgsHandles Button2.Click
      Shell
    ("Minecraft.exe")
        
    End Sub

        
    Private Sub Button3_Click(sender As ObjectAs EventArgsHandles Button3.Click
      Shell
    ("TechnicLauncher.exe")

        
    End Sub

        
    Private Sub Button6_Click(sender As ObjectAs EventArgsHandles Button6.Click
      Shell
    ("MC SOUNDS.exe")
        
    End Sub

        
    Private Sub Button5_Click(sender As ObjectAs EventArgsHandles Button5.Click
      Shell
    ("mcedit.exe")
        
    End Sub

        
    Private Sub Button1_Click(sender As ObjectAs EventArgsHandles Button1.Click

      Process
    .Start(Environment.ExpandEnvironmentVariables("%appdata%\.minecraft\texturepacks"))

        
    End Sub

        
    Private Sub Button4_Click(sender As ObjectAs EventArgsHandles Button4.Click
      Shell
    ("Minecraft_Server.exe")
        
    End Sub

        
    Private Sub Button7_Click(sender As ObjectAs EventArgsHandles Button7.Click
      Shell
    ("SkinTheft.exe")
        
    End Sub

        
    Private Sub Button8_Click(sender As ObjectAs EventArgsHandles Button8.Click
      Shell
    ("Launch.bat")
        
    End Sub

        
    Private Sub Button9_Click(sender As ObjectAs EventArgs)

        
    End Sub

        
    Private Sub Button1_Click_1(sender As ObjectAs EventArgsHandles Button1.MouseEnter

      My
    .Computer.Audio.Play(My.Resources.losticks1AudioPlayMode.Background)
        
    End Sub

        
    Private Sub Button3_Click_3(sender As ObjectAs EventArgsHandles Button3.MouseEnter

      My
    .Computer.Audio.Play(My.Resources.losticks1AudioPlayMode.Background)
        
    End Sub

        
    Private Sub Button2_Click_2(sender As ObjectAs EventArgsHandles Button2.MouseEnter

      My
    .Computer.Audio.Play(My.Resources.losticks1AudioPlayMode.Background)
        
    End Sub

        
    Private Sub Button4_Click_4(sender As ObjectAs EventArgsHandles Button4.MouseEnter

      My
    .Computer.Audio.Play(My.Resources.losticks1AudioPlayMode.Background)
        
    End Sub
        
    Private Sub Button5_Click_5(sender As ObjectAs EventArgsHandles Button5.MouseEnter

      My
    .Computer.Audio.Play(My.Resources.losticks1AudioPlayMode.Background)
        
    End Sub
        
    Private Sub Button6_Click_6(sender As ObjectAs EventArgsHandles Button6.MouseEnter

      My
    .Computer.Audio.Play(My.Resources.losticks1AudioPlayMode.Background)
        
    End Sub
        
    Private Sub Button7_Click_7(sender As ObjectAs EventArgsHandles Button7.MouseEnter

      My
    .Computer.Audio.Play(My.Resources.losticks1AudioPlayMode.Background)
        
    End Sub
        
    Private Sub Button8_Click_8(sender As ObjectAs EventArgsHandles Button8.MouseEnter

      My
    .Computer.Audio.Play(My.Resources.losticks1AudioPlayMode.Background)
        
    End Sub

        
    Private Sub Label1_Click(sender As ObjectAs EventArgs)

        
    End Sub

        
    Private Sub LinkLabel1_LinkClicked(sender As ObjectAs LinkLabelLinkClickedEventArgsHandles LinkLabel1.LinkClicked

      
    Try
        
    System.Diagnostics.Process.Start("http://www.planetminecraft.com/member/zakoschris/")
      Catch
        
    'Code to handle the error.
      End Try
        End Sub

        Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
      My.Computer.Audio.Play(My.Resources.Knob, AudioPlayMode.BackgroundLoop)

        End Sub
    End Class 

Similar Threads

  1. What music are you listening?
    By h4x0r in forum General Talk
    Replies: 69
    Last Post: 2014-02-25, 01:42 AM
  2. [Request] problems VAC
    By OsosheO in forum Soul Saver
    Replies: 1
    Last Post: 2012-08-30, 02:30 AM
  3. [Guide] Change Aika Music
    By leandrol9 in forum Aika Guides, Tutorials
    Replies: 1
    Last Post: 2011-12-26, 06:38 AM
  4. [Guide] Minecraft Secret Room with Zelda Music
    By Grooguz in forum MineCraft Guides, Tutorials
    Replies: 0
    Last Post: 2011-09-22, 03:26 PM
  5. Problems with registration
    By Dwar in forum Rules/Announcements
    Replies: 0
    Last Post: 2010-11-29, 03:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •