I have multiple forms and on one of them is the media player. When I send an URL from a form to the wmp on a other form, it starts playing. But not on the player I added to the form, in runs on the background of the form and I can't controll it with the play/stop buttons of the added wmp controll. When I send this URL from the form where the wmp is on, it's just playing as it should and the controlls work agian.
Forms: frmDesktop frmAudio
Send URL from frmAudio to frmDesktop: frmDesktop.wmpDeskAudio.URL = FilePath
Send URL from frmDesktop to frmDesktop: wmpDeskAudio.URL = FilePath
MDI form: frmMain Added forms: frmDesktop as objDesktop frmAudio as objAudio
So I had to use this code: frmMain.objDesktop.wmpDeskAudio.URL = FilePath
But have another question
Why isn't the player showing the visualisation stretcht over the whole controll The size of the visualisation is about 300; 300. Some controll settings: size:480; 300 stretchtofit = true uiMode = none