My.Computer.Audio.Play("C:\test.mp3", AudioPlayMode.WaitToComplete)
My.Computer.Audio.Play("C:\test.mp3", AudioPlayMode.BackgroundLoop)
My.Computer.Audio.Play("C:\test.mp3", AudioPlayMode.Background)
How can you make that when you open the program there will be music.
I mean if you do an injector when you open there will be music.
My.Computer.Audio.Play("C:\test.mp3", AudioPlayMode.WaitToComplete)
My.Computer.Audio.Play("C:\test.mp3", AudioPlayMode.BackgroundLoop)
My.Computer.Audio.Play("C:\test.mp3", AudioPlayMode.Background)
But how to choose the .mp3 track?
You can add a hidden WMP control if you want.
Right click the toolbox >> "Choose Items" >> COM components tab. Scroll right down and tick windows media player.
Then add one to your form, set it's visibility to false.
Then on your form_load event.
[php]
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
AxWindowsMediaPlayer1.settings.autoStart = True
AxWindowsMediaPlayer1.URL = ("C:\example.mp3")
End Sub
[/php]
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
DeathHunter (06-30-2010)
change
[php]
"C:\example.mp3"
[/php]
to wherever your media is stored, obvious is obvious.
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
And how to make a process bar with a help providor + notify icon ?
Long time no VB and forgot everthing
processbar with help provider? wtf?
Like explain? What should the progressbar show for a progress?
To use help provider with any control:
■ Drag a Help Provider to the form.
■ Select the form and edit its following properties:
■ MaximizeBox To False
■ MinimizeBox To False
■ HelpButton To True
■ The above procedure will add the help icon before the close button of the form. Now add the following code to set the help for any control. You can call it from anywhere you want:
[php]helpprovider1.SetHelpString(ProgressBar1, "This is a progress bar.")
helpprovider1.SetShowHelp(ProgressBar1, True)[/php]
As for the Notify Icon, there is a code in the snippets sticky. You'll find it in the very first post by NextGen1.
Hope this helps !!