Having a little trouble figuring out how to make this go in order properly and delay properly. Basicly I need this to diplay the image then play the new audio, wait to complete then go back to playing the regular background music.
Case 1
If ScoutNumber = 1 Then
messagebox.BackgroundImage = My.Resources.Ant_Armor_1_Message
storage.ArmorP += 1
My.Computer.Audio.Play(My.Resources.Marching, AudioPlayMode.WaitToComplete)
End If
Locations()
This is just a snippet of code of course. Scoutnumber is a random. The image of course is messagebox.BackgroundImage = My.Resources.Ant_Armor_1_Message which needs to display first then it needs to My.Computer.Audio.Play(My.Resources.Marching, AudioPlayMode.WaitToComplete)
My.Computer.Audio.Play(My.Resources.Marching, AudioPlayMode.WaitToComplete)
Then locations has the background music that needs to start backup. Every background song is different based on location hence the name. Anyway I tried playing with sleep and that did not seem to work. I'd also like to avoid making a timer for this if possiable. Suggestions would be great. I would do a "Do while" but I've never tried using one before so I don't know if it would work or even solve the issue.
Currently it plays the "wait to complete" audio first, displays image and then load locations. I need it to load picture before the wait to complete audio.