Search code examples
c#windowsvb.netwindows-media-player

Windows Media Player - Enable play button without OpenFileDialog


this is probably pretty simple, but I've noticed that when trying to start the Windows Media Player (AxWMPLib), it takes the "player.url = path", and only then does the player's Play-button get activated. Thing is, I want to play sound files taken from the URL of a column in a database. And when clicking on that row, the mediaplayer should update, making it's play-button clickable.

Any ideas?


Solution

  • Just fixed the problem by setting the WMP's "autoplay"-property to false.