Login Register






[vb6] Get Default Browser filter_list
Author
Message
[vb6] Get Default Browser #1
written by starz

Code:
Option Explicit Public Function sDBrowserPath() As String Dim oShell As Object Set oShell = CreateObject("WScript.shell") sDBrowserPath = Split(oShell.RegRead("HKEY_CLASSES_ROOT\HTTP\shell\open\command\"), Chr(34))(1) End Function Private Sub main() MsgBox sDBrowserPath End Sub

Reply

RE: [vb6] Get Default Browser #2
(08-24-2012, 05:37 PM)sylar Wrote: written by starz

Code:
Option Explicit Public Function sDBrowserPath() As String Dim oShell As Object Set oShell = CreateObject("WScript.shell") sDBrowserPath = Split(oShell.RegRead("HKEY_CLASSES_ROOT\HTTP\shell\open\command\"), Chr(34))(1) End Function Private Sub main() MsgBox sDBrowserPath End Sub

what does this code do?
[Image: fow57.jpg]

Reply

RE: [vb6] Get Default Browser #3
It returns the default browser path.

make a new vb6 project with only one modul, paste this code into it and run.
then u will see what i meand

Reply

RE: [vb6] Get Default Browser #4
just make ur code

Shell ("Explorer.exe http://bisauninepal.blogspot.com")

it turn on our default browser .

Reply

RE: [vb6] Get Default Browser #5
I usually use Process.Start() for something like this. Add a filename for its argument and it will do whatever your system does by default with that type of file.
Process.Start("something.txt") will open it up in notepad
Process.Start("http://google.com") will open your browser to google

Your code seems a little bit too complicated, sylar.
kabalevsky was here.

Reply