시스템 사운드 및 비프음 버튼 만들기
*
Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
My.Computer.Audio.PlaySystemSound(Media.SystemSounds.Asterisk)
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
My.Computer.Audio.PlaySystemSound(Media.SystemSounds.Beep)
End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
My.Computer.Audio.PlaySystemSound(Media.SystemSounds.Exclamation)
End Sub

Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
My.Computer.Audio.PlaySystemSound(Media.SystemSounds.Hand)
End Sub

Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
My.Computer.Audio.PlaySystemSound(Media.SystemSounds.Question)
End Sub

Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
Console.Beep()
End Sub
End Class

윈도우 시스템에 사용되는 사운드 및 비프음 버튼 입니다.

이 게시물을

댓글'2'
교교
  • 2014.06.20
Sub PlayBackgroundSoundFile()
    My.Computer.Audio.Play("C:\Waterfall.wav", 
        AudioPlayMode.WaitToComplete)
End Sub

이 댓글을

교교
  • 2014.06.20

반복 재생

Sub PlayLoopingBackgroundSoundFile()
    My.Computer.Audio.Play("C:\Waterfall.wav", 
        AudioPlayMode.BackgroundLoop)
End Sub

이 댓글을

공유하기

SEARCH

MENU NAVIGATION