Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27412

Looking for help.

$
0
0
I have been trying to figure out how to make it to where when you hover you're mouse over a buttion it will make a sound. I have spent around 5 hours of non stop research trying to figure this out. I'am a newcomer to visual studio 2012 and Don't know much about it. Here is the code:

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.MouseHover



My.Computer.Audio.Play(My.Resources.tick, AudioPlayMode.Background)
Process.Start(Environment.ExpandEnvironmentVariables("%appdata%\.minecraft\texturepacks"))

End Sub

Now whats happening is that when I hover my mouse over the button it make the sound, But it also starts the process. I only want the process to start when I click the buttion. And i want the sound to play when I hover over the buttion with my mouse. Any kind of help will be awesome.

Viewing all articles
Browse latest Browse all 27412

Latest Images

Trending Articles



Latest Images