I have a drop down list , in which i have list of browsers such as “Firefox,chrome,IE “,
Now i want that when i run my application and select from the drop down the browser my application should run in that particular selected browser,can anyone help me in this as i have spend a lot of time searching on internet and haven’t found any result so far. i am using c#.NET
thanks for your support.
I have a drop down list , in which i have list of browsers
Share
You can look in the registry under
HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternetto see the registered browsers that are installed (on my machine, IE, Firefox, Chrome and Opera all show up).The default value under each browser’s subkey is its name. Then you can look under the subkey
shell\open\commandto get the executable to run.Here’s some example code I wrote: