How to make your browser the default
Use this board to post your code snippets - tips and tricks
Just showing you how to make your own webbrowser the default one
Or:
Code: Select all
Replace "BROWSER PATH" with the program that should be the default browserDim Key As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.CurrentUser.CreateSubKey("Software\Clients\StartmenuInternet", True) 'Creates or opens the registry key for the default browser with write access
Key.SetValue("", "BROWSER PATH") 'The path of your program
Key.Close() 'closes and flushes the key
Or:
Code: Select all
Microsoft.Win32.Registry.SetValue("HKEY_CURRENT_USER\Software\Clients\StartmenuInternet", "", "BROWSER PATH")
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!
I think this has already been posted here but it might of been a question, but good anyway cooll;
Agust1337 wrote:I think this has already been posted here but it might of been a question, but good anyway cooll;You're right, a question has been posted(same forum in uploading/downloading files) but I didn't figure out how to do it until now
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!
Thanks for the code, this one will be easier to find then the other one
But, how does the browser open the webpage after being opened as the default browser?.
But, how does the browser open the webpage after being opened as the default browser?.
We shall let the revolution begin.. the revolution for freedom, freedom against censorship. We shall fight in the fields and in the streets, we shall fight in the hills; we shall never surrender
That would be like this
Code: Select all
if its using multiple arguments you would need to change 0 to whateverDim args as [string]() = environment.GetCommandLineArgs()
webbrowser1.navigate(args(0))
Nice little piece of code MrAksel! Useful for me!
Instead of LOL use this -
LSIBMHBIWFETALOL
Which means -
Laughing silently in between my head because it wasn't funny enough to actually laugh out loud!
LSIBMHBIWFETALOL
Which means -
Laughing silently in between my head because it wasn't funny enough to actually laugh out loud!
What would be new is that if it would check if it was the default browser like Chrome, FireFox, IE etc... do
Agust1337 wrote:What would be new is that if it would check if it was the default browser like Chrome, FireFox, IE etc... doWouldn't be that hard to create, just read the reg. key
We shall let the revolution begin.. the revolution for freedom, freedom against censorship. We shall fight in the fields and in the streets, we shall fight in the hills; we shall never surrender
Copyright Information
Copyright © Codenstuff.com 2020 - 2023