TizzyT

SoundBG.exe - TizzyT

Apr 26th, 2014
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.62 KB | None | 0 0
  1. ''' Plays WAV files in background
  2. ''' Start a new Console Application
  3. Module Module1
  4.     Sub Main()
  5.         Dim CommandLineArgs As System.Collections.ObjectModel.ReadOnlyCollection(Of String) = My.Application.CommandLineArgs
  6.         For Each sound As String In CommandLineArgs
  7.             On Error Resume Next
  8.             My.Computer.Audio.Play(sound, AudioPlayMode.WaitToComplete)
  9.         Next
  10.     End Sub
  11. End Module
  12. ''' NOTE: to make the application not display an interface go to PROJECT>X Properties(all the way at bottom)>Application>Application Type. Change it to Windows Forms Application, then build the project.
Advertisement
Add Comment
Please, Sign In to add comment