I'm building myself a media player in VS.
I'm having trouble getting my ListViewItem to correspond to axWindowsMediaPlayer.currentMedia when it loads a new media item or is playing one while the user selects a different ListViewItem to do something with it (such as add a genre name to a subitem).
I've tried using various axWindowsMediaPlayer events, but it seems as though axWindowsMediaPlayer is slow to reflect the currently playing media item, no matter which event I use. This causes a problem when the ListViewItem that's playing needs to be reselected by the program as the active item when the user is finished with another item.
I'm pretty new to VS and OOP, and Microsoft documentation is terrible. So is StackOverflow. I just need a quick and dirty solution without having to understand the entire concept of OOP before I start doing things. I've already got a fully functioning software program built but there are little bugs like the one described that need to be fixed before I'm satisfied with it.
I'm willing to share the code with anyone who cares to help.
(post is archived)