Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Launch Default Browser (IE) In W2K?


How do I launch the Default browser to a specific URL in W2K?

is it the same as win98?

Thanks....
I think this is the code right? but I would have to change the Pathoffile.txt to a URL right?


VB Code:
Private Declare Function ShellEx Lib "shell32.dll" Alias _ "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, _ ByVal lpFile As String, ByVal lpParameters As Any, _ ByVal lpDirectory As Any, ByVal nShowCmd As Long) As Long   Private Sub Command1_Click() Dim x x = ShellEx(Form1.hwnd, "open", PathOfFile.txt, "", "", 1) End Sub




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Launch The Default Browser Within Vb6
I have read all the posts about launching browsers but there is one thing missing in all these posts: They assume that IE is the default browser and is in a specific location.

Is there anyway to launch the default browser and not have to assume that the user has installed it in a specific location with a specific webpage (URL) loaded?

My guess is that this might be an API call.

Thanks in advance

Launch (new Instance Of) Default Browser For Specific Url
I'm using the following code to launch the default browser:
vb Code:
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpszOp As String, ByVal lpszFile As String, ByVal lpszParams As String, ByVal lpszDir As String, ByVal FsShowCmd As Long) As Long ' Launch default browserPublic Sub LaunchBrowser(ByVal URL As String)    ShellExecute 0&, vbNullString, URL, vbNullString, vbNullString, vbNormalFocusEnd Sub
Works great, except that it cannibalizes an existing instance of the default browser if any are already open.

I'd rather it always force a new instance. Any ideas?

Launch Default Browser And Read An HTML File
Hello,

With VB6, I want to launch the default web browser on a system and read a
local html file into it.

Can someone explain how i do this ?

Vbr,
Darren

Default Email Client / Default Web Browser
How to open the default email client ?
Also, how to open the default web browser ?
Regards.

Launch Default Mail Client
Hi Guys's

How do I launch the default mail client ? Ive searched vbcity & can only find Launch client AND head up a new email.
All i wanna do is launch defualt mail client.

cheers

Oly

Launch Browser From VB6 App
How do I cause a vb6 app to launch the user's default browser with a specific URL? That is, as clicking on a URL in an e-mail message causes the browser to launch, using that URL.

Don

How To Launch An Exe From The Browser ?
hi,


I have written an Activex DLL and packed it as Cab file and marked it as safe for scripting. This will be launched from the webbrowser as follows :

<HTML>
<HEAD>
<TITLE>Chatroom.CAB</TITLE>
</HEAD>
<BODY>
<OBJECT ID="ChatTest"
CLASSID="CLSID:D02F7572-AED3-4F80-A58A-213C3A60BC91"
CODEBASE="Chatroom.CAB#version=1,0,0,0">
</OBJECT>

<script language="javascript">
<!--
document.ChatTest.LaunchRoom();
//-->
</script>
</BODY>
</HTML>

So, This cab file consists of dependencies of this activex as well as a EXE file name a.exe.
the LaunchRoom function in Activex is supposed to launch that a.exe.
But where this file will be saved, when activex is installed from browser ?
what is the default path for it ?

Thanks in advance.

Thanks & Regards
Chinna

How To Launch An Exe From Web Browser ?
Hi,

I have written an Activex DLL and packed it as Cab file and marked it as safe for scripting. This will be launched from the webbrowser as follows :

<HTML>
<HEAD>
<TITLE>Chatroom.CAB</TITLE>
</HEAD>
<BODY>
<OBJECT ID="ChatTest"
CLASSID="CLSID02F7572-AED3-4F80-A58A-213C3A60BC91"
CODEBASE="Chatroom.CAB#version=1,0,0,0">
</OBJECT>

<script language="javascript">
<!--
document.ChatTest.LaunchRoom();
//-->
</script>
</BODY>
</HTML>

So, This cab file consists of dependencies of this activex as well as a EXE file name a.exe.
the LaunchRoom function in Activex is supposed to launch that a.exe.
But where this file will be saved, when activex is installed from browser ?
what is the default path for it ?

Thanks in advance.

Thanks & Regards
Chinna

Launch Browser From VB
I need to launch the browser from VB to my site which is protected by NT basic Authentication. I can go to the site using ShellExecute, but now I need to also pass in the Authentication info programatically, so that the network password dialog doesn't come up. Any Ideas??

How To Add Proxy To My Web Browser? And How To Make My Browser Be Default?
How to add proxy to my web browser? And how to make my browser be default?

Can U All Set My Browser To Windows System Default Browser
I build my owm web browser , and i want my own webbrowser to be the window default browser . Can any one tell me which API to set my browser to be the default browser of winfows system ?
Thanks alot

Auto Launch Browser With Specified Url
hi

i'm pretty new in visual basic..i really hope anyone out here can help me.
i just want to ask, how do i create an application(or use which function) which launchs the default browser and go to a specified url?

thanks a lot for any help.

ShellExecute Won't Launch Browser
Hi, I'm having a strange problem with ShellExecute. It works fine on my computer, but it doesn't work on another computer when trying to open a website with the default browser.

Both of them work fine on my computer.


vb Code:
ShellExecute 0, "Open", App.Path & "Help.chm", vbNullString, vbNullString, vbNormalFocus ShellExecute 0, "Open", "http://www.google.com", vbNullString, vbNullString, vbNormalFocus




This one works fine on another (test) computer.


vb Code:
ShellExecute 0, "Open", App.Path & "Help.chm", vbNullString, vbNullString, vbNormalFocus


This one doesn't work on the other computer.


vb Code:
ShellExecute 0, "Open", "http://www.google.com", vbNullString, vbNullString, vbNormalFocus


The computer where both ShellExecutes are working fine is running an English version of XP SP2, the other computer is running a Dutch version of XP SP2.

Any idea?

How To Launch A Web Browser And Go To A Specifiec URL.
Hi all,

This will be an easy one for someone. I want to launch a web browser which will go straight to a specific url.

Thanks

Auto Launch Browser With Specified Url
hi

i'm pretty new in visual basic..i really hope anyone out here can help me.
i just want to ask, how do i create an application(or use which function) which launchs the default browser and go to a specified url?

thanks a lot for any help.

Launch New(second)Browser Window
Hello

I have a webbrowser control in my app that navigates to a sight when opened.

What I would like to be able to do is have a button that opens a second window to a different address and keeps the first window open on it's original page.

Is this possible to do with the webbrowser control?

I've tried using the show method but that just navigates the same window to the new address.

Thanks

David

Launch Browser And Pass URL String
I am a VBA newbie and I need to launch Microsoft Internet Explorer and pass (i.e.) http://www.yahoo.com to it.

Any help would be greatly appreciated.

THANKS!!

Launch Website In Diffrent Browser Then IE
I want to load the site "http://www.rapidfriends.com" in my own webbrowser. it will be launched from a diffrent progam that i am making. how do i do this? thanks

How To Launch A Browser Using Just An HTTP Address
I'm looking for a way to launch a browser knowing just the http address the user wants to go to. I don't know if they use IE or another browser. I want to use their default browser.

Thanks in advance

Another Browser Launch Program (different Scenario)
ok, I have been reviewing the other questions regarding browser launching, but those scenarios were different than what i needed.

1. I am using a rich text box*.
2. This RTB* is not specifically used to type in URLs. There will be other things contained in the same box as well (this program is kinda like a wordpad program.)
    but when a URL is typed, VB.net already shows it as a URL, so when it is clicked, i need it to launch a browser.

3. I would also Like it to launch the default browser, as i use firefox while my friends are still in the IE era.

4. Instead of reusing any browsers that are already opened, i need it to open a fresh window each time.

When researching this question, #2 was always the thing that got in the way.

any suggestions?

How Can I Make My Browser The Default Browser?
I made a browser in vb and i want to use it as my default browser. Some links open in new instances of ie and i want them to load an instance of my browser instead. I am working in win98.

I 've already change a key in Registry under the HKEY_CLASSES_ROOThtmlfileshellopencommand and i placed the path of my browser instead of iexplorer but it had no effect.

I will be very glad if you could help me.

How Do I Make My Form Auto-close After Clicking A Button To Launch Default Email-client?
This is my 3rd query within a couple of weeks, so I hope I'm not overdoing it ... but can anyone help me with the following problem:

I have a simple form with a button on it, which when clicked, launches the user's default email-client. All works well ... but I would like the main form to auto-close, when the default email-client opens. Does anyone know how I can modify my code to achieve this? The code I'm using to launch the email-client is set out below:

=========================================================================================================
Private Declare Function ShellExecute Lib _
              "shell32.dll" Alias "ShellExecuteA" _
              (ByVal hwnd As Long, _
               ByVal lpOperation As String, _
               ByVal lpFile As String, _
               ByVal lpParameters As String, _
               ByVal lpDirectory As String, _
               ByVal nShowCmd As Long) As Long
                   
Private Const SW_SHOW = 1

Public Sub Navigate(ByVal NavTo As String)
  Dim hBrowse As Long
  hBrowse = ShellExecute(0&, "open", NavTo, "", "", SW_SHOW)
End Sub

Private Sub Command1_Click()
    Navigate "mailtoaranoyd@hotmail.com?Subject=Test" & _
    "&body=This is just a test program"
End Sub
===================================================================================================

Default Browser
Maybe someone can help me. I have the following code to set my web browser as the default.
(writing to the registry with a class module)

Code:
.ClassKey = HKEY_LOCAL_MACHINE
.SectionKey = "SoftwareClasseshttpShellOpenCommand"
.ValueType = REG_EXPAND_SZ
.Value = App.Path & "" & App.EXEName & ".exe" & " -url " & Chr$(34) & "%1" & Chr$(34)

.ClassKey = HKEY_LOCAL_MACHINE
.SectionKey = "SoftwareClasseshttpsShellOpenCommand"
.ValueType = REG_EXPAND_SZ
.Value = App.Path & "" & App.EXEName & ".exe" & " -url " & Chr$(34) & "%1" & Chr$(34)
RestartNeeded = True
This code works great on my laptop (win2000 sp4, 1.6 intel 4) when lunching a webpage from a link or shortcut. But after installing on a new pc (win2000 sp 4, 2.8g intel 4) clicking on a link or shortcut lunches IE. Do anyone have ann ideal what my be happening?

Or am I missing a setting to make my web browser default to the system?

Thanks

Default Browser
How do I make my program open the computer's default Web browser?

Get Default Browser!
Using VB6, how do I find out which browser has been set as the default browser in the user's machine?

Default Browser
When my program loads I would like it to check what browser is set as default, and let the user decide if they want my browser to be the default with a yes/no messagebox...

The problem is i have no idea how to do this, anyone who knows?

Set As Default Web Browser
Hello Can someone please help me. I have made a IE Based Web Browser in VB 6 and the browser uses tabs, I would like to make a option on the options screen where the user can set my browser as their default web browser and when they click on a htm or html file on their computer I want it to open in my browser instead of Internet Explorer's But I also want it when they click on the Exe File it opens the Home page instead of a blank page. I want to have both set the homepage or the Htm, html file. please help email me at asylum@fidmail.com or post a reply...

My Tabbed Browser uses :

If strStarting_Address = vbNullString Then

Select Case gStartPage
Case 0
wbc_OpenBrowser(Matrix_Tab_Browser.Tabs(int_Object_Browser_Index%).Tag) _
.GoHome

Get Default Browser
how can i detect the default browser on a PC

Default Browser
Whats the command or code to load the users default web browser?Thx guys

Browser Set As Default
Is it possible for the user to set the browser i created as default browser on their comp without using registry editor? I don't have it. Thanks in advance..

Default Web Browser
How can I launch the default web broswer, whether it's Netscape, IE, Opera, etc?

To clarify, I'm using ShellExecute to open a link, but it doesn't always open a new instance of the webbrowser. This is what I'm trying to accomplish.

Default Browser
Some of my customers use Netscape Navigator (I've no clue why) and some use IE. Is there a way to determine what the default browser on any given computer is?

Set Default Browser In Vb
I HAVE MADE A NEW BROWSER IN VB 4 STANDARD BUT THERE IS ONLY ONE PROBLEM WITH IT.....ALL THE POP UP WINDOWS ARE OPENED BY I.E. THE FOCUS ON MAKING THIS BROWSER IS TO AUTOMATICALLY DELETE TEMP INTERNET FILES TO HIDE TRACES OF WHERE U HAVE BEEN......SO MY QUESTION IS HOW DO I SET THE DEFAULT BROWSER TO MY ONW BROWSER THROUGH VB CODE?????????????
PLZ HELP...........

Default Web Browser
hi

How to start default web browser with specified url ?


Regards

Get Default Browser
I have an app that calls internet explorer and opens a web page. I would like for the app at startup to get the windows default browser path and filename. How do I do that?

Default Browser...
Anyone know what needs to be done to set my browser as windows' default browser?

What Is The Default Browser...
hi there,

thank you very much for the ealier answers but my questions dont seem to have an end...

anyway what i want to do is to launch the default browser on any computer and view a certain page lets say c:index.html
i tried to use webbrowser component for this. but regardless of the default browser it launches internet explorer. is there a way to launch the default browser ?

Mehmet...

Default Web Browser
What's the best way to find out the default web browser and shell it?

For example, I want to use a "click here to purchase" link to launch IE, Netscape, or whatever and then let the browser handle whether to dial or not.

Default Browser
what changes do i have to make to change the deafult borwser? i tried some reg keys that had the my default browser path, but they didnt work

Default Browser
How do i change my default browser from Windows NT shell not from Visual Basic.

Default Browser
is there any way of determining what is the default browser without using shell or shellexecute

Default Browser?
How'd determine which is the default browser on the system?

Getting Default Web Browser
Does anyone know how I can determine the default web browser using VB.

Jim Hewitt
Software Developer
Liberty Tax Service
www.LibertyTax.com

Own Web Browser To Default Browser?
Hi!

I have been develope my own web browser with VB6. How I can code some menu where user can choose default web browser if he want but my web browser to default browser?

I hope you understand

Default Internet Browser
Hello. I have created my own personal internet browser. What code can i use to

A. Set it as the Default Browser
B. Open when a link is clicked on such as in an IM window
C. Have the command passed on to my browser upon initilization and load that page.

Please explain as clearly as posible. Thanks in advance.

Trent

Make Default Browser
I want to add code to my VB Web browser to make it the default browser. I asume you add the code will add a registry key. Can someone give me the code that I need to insert.

Opening Default Browser
I need some code to open a default browser. anyone have anything

Thanks

Know someone that owns a child care business. Go to www.kidkeeper.net. It will help them greatly

Opening Up The Default Browser
I know I could use the shell function, but since my program is going to be distributed, is there a better way to have the program open up the user's default web browser (to a specified webpage, of course)?

Making The Default Browser.
I am making my own web browser. I have a problem at the step of making it the default browser. I know how to launch my web browser when clicking on htm or html files (by setting some values in the registry). But the problem is when my web browser is launched, it always goes to my home page. It does not open the web page of the html file that I have clicked. Can anyone help me please. Thank you in advance.

Copyright © 2005-08 www.BigResource.com, All rights reserved