Problem with Active Winamp
Please help me out with this, I'm going nuts! The problem just doesn't make any sense to me.
I am using the active winamp plugin as part of a VB .NET project. I created an object pointer for the active winamp plugin:
Dim WithEvents Winamp As ActiveWinamp.Application
and then created a new instance of it in the form load procedure:
Winamp = New ActiveWinamp.Application
Then I added the event sub for the changed track event. This procedure triggers when winamp changes tracks, and successfully displays a messagebox:
Private Sub Winamp_ChangedTrack() Handles_ Winamp.ChangedTrack
Msgbox ("Track changed.")
End Sub
But this one does not work!
Private Sub Winamp_ChangedTrack() Handles_ Winamp.ChangedTrack
TextBox1.Text = "Track changed."
End Sub
I can't imagine what the problem is. With some experimenting, I noticed the following unusual occurrences within the changed track even procedure:
1. Cannot update any feild on the form
2. If I set timer.enabled = true, it never actually fires the tiemr event, however, if I later check the timer.enabled property, i find that it was actually set to True
3. Cannot perform a refresh of the form or any of its contents, the debugger just skips the command as I step through it.
4. I can add text to a listbox, but it never appears on the screen. I know its there because I can later query the listbox items, and find that the text was added. It was just never updated on the screen.
I have NEVER encountered something this odd. Can someone please point me in the right direction?
Thanks,
-Joe
Please help me out with this, I'm going nuts! The problem just doesn't make any sense to me.
I am using the active winamp plugin as part of a VB .NET project. I created an object pointer for the active winamp plugin:
Dim WithEvents Winamp As ActiveWinamp.Application
and then created a new instance of it in the form load procedure:
Winamp = New ActiveWinamp.Application
Then I added the event sub for the changed track event. This procedure triggers when winamp changes tracks, and successfully displays a messagebox:
Private Sub Winamp_ChangedTrack() Handles_ Winamp.ChangedTrack
Msgbox ("Track changed.")
End Sub
But this one does not work!
Private Sub Winamp_ChangedTrack() Handles_ Winamp.ChangedTrack
TextBox1.Text = "Track changed."
End Sub
I can't imagine what the problem is. With some experimenting, I noticed the following unusual occurrences within the changed track even procedure:
1. Cannot update any feild on the form
2. If I set timer.enabled = true, it never actually fires the tiemr event, however, if I later check the timer.enabled property, i find that it was actually set to True
3. Cannot perform a refresh of the form or any of its contents, the debugger just skips the command as I step through it.
4. I can add text to a listbox, but it never appears on the screen. I know its there because I can later query the listbox items, and find that the text was added. It was just never updated on the screen.
I have NEVER encountered something this odd. Can someone please point me in the right direction?
Thanks,
-Joe
Comment