Question the Axwindowsmediaplayer is acting weird

quangha

Member
Joined
Jan 30, 2010
Messages
16
Programming Experience
Beginner
Hi, I'm using VS 2008 pro version under windows 7. I'm developing an app, and my app has 2 forms. When i press a button in form 1, form 2 will show up. Form 2 contains an axwindowsmediaplayer control and I set the autostart to true. The problem is: When i start debugging the app, the form 1 shows up and I click the button to call form 2, the form 2 shows up and the player start playing ( this is really good, at first), when i close form 2, the player stop, the app takes me to form 1 again, now is the problem, when i call form 2 again, the player seems don't want to show up, i don't know how to describe, here is the image
This is the player i want
Capture-3.png

and this is the problem ( the sound still play well )
Capture2-1.png

anyone have any idea ? THanks for your help
 
hmmm, i know the cause of the problem, but don't know how to fix. When i try to re-open form 2, the player is full-size ( not custom size anymore ) and the black part you could see is the visualization. I accidentally resize the form and discover this. Can anybody help me to lock the size of the player ?
 
Back
Top