Click here to Skip to main content
15,891,316 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am creating an application in Vb.Net that consists of one textbox to display the file name, one axwindowsmediaplayer and 5 buttons:
1.Load File
2.Play
3.Pause
4.Stop
5.Clear
I have coded all the buttons successfully. The issue is with 'clear' button. I want that on clicking the 'clear' button, textbox field is cleared and also axwindowsmediaplayer resources should be released so that the media player is not able to play anything unless there is some file loaded again. How can I program it?
I have already tried this code for the clear button:
textbox1.text=""
AxWindowsMediaPlayer1.URl=""
AxWindowsMediaPlayer1.Ctlcontrols.stop()
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900