473,387 Members | 1,502 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Opening a URL in an external Browser?

Sorry reposting for clarity...

Which one is better? This:

System.Diagnostics.Process.Start(URL)

or this?

Dim psi As New ProcessStartInfo()
psi.UseShellExecute = True
psi.FileName = URL
Process.Start(psi)

And why?

Regards,
--
Anil Gupte
www.keeninc.net
www.icinema.com
www.wizo.tv
Jul 15 '08 #1
5 1566
On Jul 15, 12:12 pm, "Anil Gupte/iCinema.com" <anil-l...@icinema.com>
wrote:
Sorry reposting for clarity...

Which one is better? This:

System.Diagnostics.Process.Start(URL)

or this?

Dim psi As New ProcessStartInfo()
psi.UseShellExecute = True
psi.FileName = URL
Process.Start(psi)

And why?

Regards,

--
Anil Guptewww.keeninc.netwww.icinema.comwww.wizo.tv
There's also another option:

Shell("explorer.exe http://www.google.com")

' Also

BTW, when you use "ProcessStartInfo" class, you're allowed to define
how your process will be launched. See members of that class using
IntelliSense.

Hope this helps,

Onur Güzel
Jul 15 '08 #2
Oh sure, confuse me even more...:-)

But which one is better?

--
Anil Gupte
www.keeninc.net
www.icinema.com
www.wizo.tv
"kimiraikkonen" <ki*************@gmail.comwrote in message
news:1b**********************************@e39g2000 hsf.googlegroups.com...
On Jul 15, 12:12 pm, "Anil Gupte/iCinema.com" <anil-l...@icinema.com>
wrote:
Sorry reposting for clarity...

Which one is better? This:

System.Diagnostics.Process.Start(URL)

or this?

Dim psi As New ProcessStartInfo()
psi.UseShellExecute = True
psi.FileName = URL
Process.Start(psi)

And why?

Regards,

--
Anil Guptewww.keeninc.netwww.icinema.comwww.wizo.tv
There's also another option:

Shell("explorer.exe http://www.google.com")

' Also

BTW, when you use "ProcessStartInfo" class, you're allowed to define
how your process will be launched. See members of that class using
IntelliSense.

Hope this helps,

Onur Güzel
Jul 16 '08 #3
On 16.07.2008 20:31, wrote Anil Gupte/iCinema.com:
Oh sure, confuse me even more...:-)

But which one is better?
Who cares as long as it works?

Best regards,

Martin
Jul 16 '08 #4
kimiraikkonen wrote:
There's also another option:
Shell("explorer.exe http://www.google.com")
That may well work, but I'd strongly advise against it because it always
opens using Internet Explorer. The other options presented by the OP will
observe the user's default browser settings, thereby not annoying the hell
out of them. :)

--

(O)enone
Jul 16 '08 #5
On 16.07.2008 21:15, wrote (O)enone:
kimiraikkonen wrote:
>There's also another option:
Shell("explorer.exe http://www.google.com")

That may well work, but I'd strongly advise against it because it always
opens using Internet Explorer. The other options presented by the OP will
observe the user's default browser settings, thereby not annoying the hell
out of them. :)
The alternative would be:

Shell("cmd /C start http://www.google.com")

'Opens the standard browser.

Best regards,

Martin
Jul 16 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: bba | last post by:
os:xp pro sp1 ie 6.2800.1106 For some reason any java scripts that refers to 'external' fails: example: external.menuArguments.document.body.style.zoom="100%"; error message:
14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
2
by: Pat Sheen | last post by:
In IE6 I'm using the following html to have three frames. One of the frames is to open a locally stored MS Word document. <frameset rows="100,1*"> <frame name=SiteHdr...
3
by: Max99 | last post by:
Hello I'd like to develop a program that fave a graphical interface like Microsoft Money where you navigate through the forms just like a browser How can I do that or where can I find an...
5
by: Brad | last post by:
In several aspx applications I export crytal reports to pdf, xls and doc files and then the aspx page writes the selected export file to the client browser. This all works with one small quirk: ...
9
by: Andrew Poulos | last post by:
I have some js that looks like this: fOpenPDFInNewWindow = function(url,page) { var page = page || 1; newPDF = window.open(url+"#pagemode=bookmarks&page="+page,...
11
by: emailus | last post by:
I am webmaster for the domain <www.alpha1.org.au>. Not being an expert in html, I take advantage of my domain Registrant's web building tool, 'Instant Website'. This tool is provided as part of...
12
by: =?Utf-8?B?QWxpIFNoYWh6YWQ=?= | last post by:
Hi, asp.net 2.0, ie6, opera 9.22 For various supportability reasons, we need to redirect a page to a url and require that the target url should open in an Opera browser. The call is simple ...
1
by: ewanm1 | last post by:
On opening IE7 I get a server application unavailable error instead of my homepage. If I click home or refresh my homepage then loads. I have tried numerous different sites, including intranet and...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.