What is the most efficient to fill a ComboBox with all the registered file types in Windows?
I want the full file type, not just the extension. I’m using VB 9 (VS2008).
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
All the file types are stored in the registry under the HKEY_CLASS_ROOT, which you could obtain using the Framework’s Registry class.
Here’s c# code to perform the task: