Using the Windows Media Player Control with Microsoft Visual …
You can add the Windows Media Player 9 Series or later ActiveX control to a .NET Framework application through the Toolbox in Visual Studio.
Before 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.
Start Visual Studio, then create a new project.
In Visual Studio, open the Toolbox.
If Windows Media Player does not appear in the Components portion of the Toolbox, do the following:
If Windows Media Player does not appear in the list, click Browse, and then open Wmp.dll, which should be in the WindowsSystem32 folder.
You can now select Windows Media Player in the Toolbox and add it to a form.
Visual Studio gives the Windows Media Player control a default name such as "axWindowsMediaPlayer1". You may want to change the name to something more easily remembered, such as "Player".
Adding the Windows Media Player control from the Toolbox also adds references to two libraries created by Visual Studio, AxWMPLib and WMPLib. You can find them in the Solution Explorer under References.
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:
The directive ensures that you can refer to Player objects without fully qualifying their names.
NoteThe Windows Media Player control is an AxWindowsMediaPlayer object from the AxWMPLib namespace. However, the AxWindowsMediaPlayer class uses data types, interfaces, and other elements from the WMPLib namespace.
When you first add the Windows Media Player control to a form, it will be visible. If you do not want to use the visible image of the Player in your application, hide the default Player by setting any one of the following properties:
You can set these properties either in code or in the Properties window when the Windows Media Player control is selected in the form designer.
The object model for the Windows Media Player control is basically the same in the .NET Framework as in unmanaged code and script. However, there are differences in how elements are exposed:
Use the Object Browser in Visual Studio to locate the correct API names for methods and objects in the AxWMPLib and WMPLib namespaces.
When you distribute your application, be sure to install AxInterop.WMPLib.dll and Interop.WMPLib.dll in the application folder. You will also need to make sure that the required Windows Media Player version is installed on the user's computer.
Originally posted here:
Using the Windows Media Player Control with Microsoft Visual ...
- Niger's Media Adjustment: Regulation, Control, and the Shrinking Newsroom in the Sahel - Modern Ghana - September 20th, 2026 [September 20th, 2026]
- Nicole Kidman loves being able to control her own narrative via social media - Film-News.co.uk - September 20th, 2026 [September 20th, 2026]
- Iranian media: Houthis take control of Strait of Mandeb after seizing Mayyun Island - Middle East Eye - September 13th, 2026 [September 13th, 2026]
- My Feed, My Way: Australia acts to give social media control to 16+ users, rather than to big tech - connectedtoindia.com - September 13th, 2026 [September 13th, 2026]
- HIVE Media Control partners with DWR Distribution to expand into South Africa - etnow.com - September 13th, 2026 [September 13th, 2026]
- Lost in the scroll? How to take back control of your screen time with Virgin Media - Virgin Media - August 29th, 2026 [August 29th, 2026]
- NetOn.Live Brings Smarter & Faster Live Production To IBC2026 - Live Design Online - August 27th, 2026 [August 27th, 2026]
- New info minister Andaleeve vows to guide media through cooperation, not control - The Daily Star - August 25th, 2026 [August 25th, 2026]
- Rivian R1S and R1T OS 2 Moves Media Controls Closer to the Driver, and That May Matter More Than the New Graphics - Torque News - August 22nd, 2026 [August 22nd, 2026]
- How to take control of AI-led brand discovery with retail media - The Drum - August 18th, 2026 [August 18th, 2026]
- Fahmi: PKR will improve communications, not control the media - NST Online - August 18th, 2026 [August 18th, 2026]
- Matthias Jaissle talks to the media: Control the controllables - The Mag - August 11th, 2026 [August 11th, 2026]
- Matthias Jaissle talks to the media: Control the controllables - Yahoo Sports - August 9th, 2026 [August 9th, 2026]
- HBCUs, Media Trust and the Fight to Control the Narrative - theeduledger.com - August 9th, 2026 [August 9th, 2026]
- Eight ways to regain control in the face of the avalanche of news - en.ara.cat - August 4th, 2026 [August 4th, 2026]
- Phones in Hand, Indias Young Protesters Blast Through Modis Media Control - The New York Times - July 24th, 2026 [July 24th, 2026]
- Coalition passes media overhaul law, giving government greater regulatory control - The Times of Israel - July 21st, 2026 [July 21st, 2026]
- Soft Power, Hard Edges: Saudi Media Control And Europes Vulnerable Information Sphere OpEd - Eurasia Review - July 1st, 2026 [July 1st, 2026]
- Harris County commissioners appointed a new flood control director. Heres what to know - Houston Public Media - June 26th, 2026 [June 26th, 2026]
- Media Owners Have Lost Control of Their Value Chain: David Buttle Talks Telemetry Standards, Big Tech and Bargaining Power - Hello Partner - June 26th, 2026 [June 26th, 2026]
- Fight job cuts at the BBC: For workers control of the media - socialistparty.org.uk - June 26th, 2026 [June 26th, 2026]
- Pauline Hansons media attacks are not just Trump-inspired. For 30 years she has sought to control the press - The Guardian - June 22nd, 2026 [June 22nd, 2026]
- Israeli media claims operational control of key southern Lebanon hill amid ongoing tensions - LBCI Lebanon - June 22nd, 2026 [June 22nd, 2026]
- Media funding without control : Safeguarding editorial independence in publicly funded journalism-Part II - Mmegi Online - June 16th, 2026 [June 16th, 2026]
- Kangana Ranaut reveals why she took back control of her social media accounts from her team - The Shillong Times - June 12th, 2026 [June 12th, 2026]
- Firings at CBS' '60 Minutes' reflect the fight for media control in the age of Trump - NPR - June 5th, 2026 [June 5th, 2026]
- The Trumpers Are Taking Over the Media: We Can Do Something Other than Whine - cepr.net - June 5th, 2026 [June 5th, 2026]
- Commentary: In collision between money and news, we lose Llewellyn King - Jacksonville Journal-Courier - June 5th, 2026 [June 5th, 2026]
- Jimmy Kimmel on Trump: Our most out-of-control relative on social media - The Guardian - June 5th, 2026 [June 5th, 2026]
- Virgin Media O2s Digital Wellbeing Strategy: Helping you take back control of your time online - Virgin Media - June 5th, 2026 [June 5th, 2026]
- Estuary Series Green Hippo | Next-Gen Media Control Platform for Live Productions - Digital Studio India - May 29th, 2026 [May 29th, 2026]
- Nuns have always sat between freedom and control. Now theyre in the social media spotlight - The Conversation - May 27th, 2026 [May 27th, 2026]
- Explosions heard near Strait of Hormuz, local media says Bandar Abbas situation under control - The Economic Times - May 27th, 2026 [May 27th, 2026]
- Pest Control Company Accused of Running Over & Killing Stray Dog in Johor - Gempak - May 22nd, 2026 [May 22nd, 2026]
- Panasonic acquires Hive to expand immersive media and control capabilities - Inavate - May 20th, 2026 [May 20th, 2026]
- Belichicks family snaps after 24-year-old girlfriend files 18 LLCs and gets media control - MSN - May 20th, 2026 [May 20th, 2026]
- Governments May Shape What AI Chatbots Say by Shaping the Web They Learn From - UC San Diego Today - May 16th, 2026 [May 16th, 2026]
- State media control impacts the output of U.S.-based LLMs - Good Authority - May 16th, 2026 [May 16th, 2026]
- Media Links integrates Xscend IP Transport Platform with DataMiner to enhance visibility and control across multi-vendor networks - Prensario... - May 16th, 2026 [May 16th, 2026]
- State Influence on AI: Tracing the Impact of Media Control - Devdiscourse - May 16th, 2026 [May 16th, 2026]
- IRGC-linked media outlines plan to tax and control undersea internet cables in the Hormuz Strait Iran's mouthpiece calls for a cut of $10 trillion of... - May 11th, 2026 [May 11th, 2026]
- Police consider new ways to 'control their narrative ' in 'depleted media landscape' - RNZ - May 11th, 2026 [May 11th, 2026]
- Narratives At War: Media Framing, Discourse, And Control In The Iran Conflict Analysis - Eurasia Review - May 7th, 2026 [May 7th, 2026]
- No journalist will stay in jail without committing crime: Info minister - The Daily Star - May 3rd, 2026 [May 3rd, 2026]
- Todd Monken Press Conference: "The easiest thing to control is our effort" - Cleveland Browns - April 23rd, 2026 [April 23rd, 2026]
- Michael Jacksons nephew slams critics over biopic, says media no longer 'controls the narrative' - Latest news from Azerbaijan - April 23rd, 2026 [April 23rd, 2026]
- New law on social media in Azerbaijan: how the authorities are strengthening control over society - JAMnews - April 23rd, 2026 [April 23rd, 2026]
- Iran rebuffs Trump's plan for new round of peace talks, state media reports - CNBC - April 21st, 2026 [April 21st, 2026]
- Narrative at Arms: Framing, Discourse, and Media Control in the Iran War - Geopolitical Monitor - April 19th, 2026 [April 19th, 2026]
- John Curley Says The Medias Blame Game Is Out of Control - MyNorthwest.com - April 19th, 2026 [April 19th, 2026]
- Mass. Gov. Healey plan aims to limit out of control youth social media use - MassLive - April 19th, 2026 [April 19th, 2026]
- Charlotte, NC Imam John Yahya Ederer: 9/11 Was All About Diverting Attention From The 'Evil' Of Zionism As Zionist Control Of The Narrative Through... - April 10th, 2026 [April 10th, 2026]
- From broadsheet editors to influencers: How has control over the media shifted? - The Boar - April 5th, 2026 [April 5th, 2026]
- Speaker Papuashvili: UNM once again; same architects of torture, racketeering, and media control resurface with same agenda - 1TV.GE - April 5th, 2026 [April 5th, 2026]
- Iranian media: Iran can control the Strait of Hormuz for several years - Apa.az - April 5th, 2026 [April 5th, 2026]
- Michigan Gaming Control Board and King Media Win Gold Shorty Impact Award for "Don't Regret the Bet" Campaign - State of Michigan (.gov) - April 3rd, 2026 [April 3rd, 2026]
- Right-wing media figures have insisted Iran cannot be in control of the Strait of Hormuz. Trump just signaled he wants to end the war without... - April 3rd, 2026 [April 3rd, 2026]
- Iran train in Turkey with tight media control ahead of World Cup warm-ups - Reuters - March 26th, 2026 [March 26th, 2026]
- 5 simple tech tips to take back control of your social media - Kurt the CyberGuy - March 26th, 2026 [March 26th, 2026]
- How the US, Israel & Iran are controlling their media narratives - The New Arab - March 26th, 2026 [March 26th, 2026]
- Hegseth, Media Control, and the War on TruthJournalism Under Fire in 2026 - savageminds.substack.com - March 22nd, 2026 [March 22nd, 2026]
- The Ellisons Empire: Media Consolidation, Narrative Control, and the Threat to Democracy - Nonprofit Quarterly - March 18th, 2026 [March 18th, 2026]
- Be the one in control: Why are more countries leaning towards banning social media access for kids? - CNA - March 18th, 2026 [March 18th, 2026]
- TRUMP BRAGS About Getting Fascist Control of the Media in BONKERS Truth Social Post - Daily Kos - March 15th, 2026 [March 15th, 2026]
- Pete Hegseth Openly Yearns For Government Control of the Media, and Admits to Committing War Crimes - Daily Kos - March 15th, 2026 [March 15th, 2026]
- Media Control and NielsenIQ BookData to Publish BookTok Charts for the U.K. - Publishing Perspectives - March 13th, 2026 [March 13th, 2026]
- Big tech has defeated everything for 30 years, but for the first time faces something it can't control: a jury - Fortune - March 13th, 2026 [March 13th, 2026]
- Media: Strait of Hormuz tanker traffic crashes as Iran tightens control - Caliber.Az - March 11th, 2026 [March 11th, 2026]
- Aga Khan Exits Nation Media Group After 66 Years as Tanzanias Rostam Azizi Takes Control - Capitalfm.co.ke - March 11th, 2026 [March 11th, 2026]
- Committee to Protect Journalists Urges Taliban to Return Control of Rah-e-Farda TV to Its Owner - Hasht-e Subh Daily - March 7th, 2026 [March 7th, 2026]
- Tehran fires at Turkey, Nato shield. US media: ground offensive of thousands of Kurds begun - Il Sole 24 ORE - March 7th, 2026 [March 7th, 2026]
- Boyfriend, 20, accused of controlling who partner spoke to and her social media use - The Western Telegraph - March 4th, 2026 [March 4th, 2026]
- Everything Larry and David Ellison Will Control If Paramount Buys Warner Bros. - WIRED - March 2nd, 2026 [March 2nd, 2026]
- You have to wonder who is in control of our social media - Northern News - February 26th, 2026 [February 26th, 2026]
- Fast-growing esports group Veloce in $61M deal with SEGG Media - Stock Titan - February 16th, 2026 [February 16th, 2026]
- Australias political and media elites are losing control of the story - Pearls and Irritations - February 16th, 2026 [February 16th, 2026]
- MindStir Media's The Hands-On Author: Taking Control of Your - openPR.com - February 9th, 2026 [February 9th, 2026]
- Exposed Moltbook Database Let Anyone Take Control of Any AI Agent on the Site - 404 Media - February 1st, 2026 [February 1st, 2026]
- analysis media and power Ellison, Trump and the TikTok deal in the USA With the takeover of control of TikTok in the USA, billionaire Larry Ellison's... - February 1st, 2026 [February 1st, 2026]
- Social media: I thought I was in control of the algorithm. Then came the dreams of blood-soaked streets - The Sydney Morning Herald - January 28th, 2026 [January 28th, 2026]