If media player current position is...

poe

Member
Joined
Oct 8, 2006
Messages
12
Programming Experience
Beginner
Hello. I have a windows media player control and then I have a time saved in a text document.

I want to show a message box when the current media reaches that time in the text. For example: 8,1234567.

So I've added a timer, with the interval 1.

VB.NET:
Private Sub timer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles timer.Tick

        Label1.Text = wmp.Ctlcontrols.currentPosition
        Label2.Text = "8,1234567"

        If Label1.Text = Label2.Text Then
            MsgBox("success")
        End If

End Sub
The problem is, nothing happens when the current position reaches the time in Label2.

What is the problem? Could it be that it's too many numbers and too fast, so it skips some?
Thanks.
 
Back
Top