hi friends,,,,,
i am doing an gaming project in vb.net 2008..
my problem is i wrote code to play the video in button click,,
so codes after the video playing code in button click must stop for 5 seconds....
how to do it????
i cant use threading.thread.sleep(5000)
if i use that then entire program execution will stop for 5 seconds
if i use that then video will also stop playing.........
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
AxWindowsMediaPlayer1.URL = "c:\vids\a.avi"
AxWindowsMediaPlayer1.Ctlcontrols.play()
'(here i need 5 seconds break to execute remaining code(at this time video will play in form)
label1.text = "finished playing"
------------------------------
-----------------------------
-------------------------
'(here 100's of code is there)
--------------------------
--------------------
End Sub
somebdy plz help me
i am struck in college project..........