Avatar of G Scott
G Scott
Flag for United States of America asked on

.NET Media Player As Default Player

I have created a very simple media player.  I can browse from within the app and open files just fine, but I need to set it as the default player for the PC.    I am not even sure how to start that.  I have a feeling it has to do with arguments, but I am lost after that.

I don't really even know how to google that.  The results I did get were only about opening media - which I can already do.

I just need a bit of guidance here.  Thanks for any help you can give me on this.
Visual Basic.NETC#

Avatar of undefined
Last Comment
G Scott

8/22/2022 - Mon
Dante Gagliardi

If you are asking how a user can register an application as the default for a file type, you can use the Right Click > Open With... and select the checkbox that indicates you wish to use that application for those types of files in the future.

I suspect, however, that the intent of your question was how to allow your application to register itself as the default for certain filetypes. This article from Microsoft should help point you in the right direction. It covers the process of registering an application as the default for desired file types.

This article and this article go over the registry keys you would need to update to register your application as the default for a given file type.

I hope this information helps. Note that some of the information in the first link has been deprecated in Windows 8, but the majority of the information is still current.
Nasir Razzaq

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
G Scott

That's what I was looking for CodeCruiser - the arguments.  Thanks a ton.
Your help has saved me hundreds of hours of internet surfing.