![]() To make using the objects in the Player namespace easier, you should include the namespace in the using or imports directives of your files, as follows: using WMPLib You can find them in the Solution Explorer under References. You may want to change the name to something more easily remembered, such as "Player".Īdding the Windows Media Player control from the Toolbox also adds references to two libraries created by Visual Studio, AxWMPLib and WMPLib. Visual Studio gives the Windows Media Player control a default name such as "axWindowsMediaPlayer1". You can now select Windows Media Player in the Toolbox and add it to a form. The Windows Media Player control will be placed on the current Toolbox tab. If Windows Media Player does not appear in the list, click Browse, and then open Wmp.dll, which should be in the Windows\System32 folder.Ĭlick OK. On the COM Components tab, select Windows Media Player. This opens the Customize Toolbox dialog box. Right-click within the Toolbox, and then select Choose Items. If Windows Media Player does not appear in the Components portion of the Toolbox, do the following: ![]() Start Visual Studio, then create a new project. Adding the Windows Media Player Controlīefore creating a new project, make sure that the latest version of Windows Media Player and the Windows Media Player SDK is installed on your computer. NET Framework application through the Toolbox in Visual Studio. You can add the Windows Media Player 9 Series or later ActiveX control to a.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |