Re: Launch IE with a complex string

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi there,

You'd have to convert your complex URL into an escaped URL. This
does the trick:

Dim theUri As System.Uri = New System.Uri( yourVeryComplexString )

And this'll start the default browser.

Diagnostics.Process.Start( theUri.AbsoluteUri() )


HTH,
Marius.

"sreelakshmi" <sreelakshmid@xxxxxxxxx> wrote in message
news:1169538461.815790.228030@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thanks,

I tried

System.Diagnostics.Process pr = new System.Diagnostics.Process();

pr.StartInfo.FileName = "iexplore";

pr.StartInfo.Arguments =
"C:/SmartClient/WebHelp_WithTOC/index.htm#mergedProjects/ProductA/ProductA_Form1.htm";

pr.Start();

This works. Though i was looking for a neater solution where there is
no need to call 'iexplore' explicitly. Is there no way to display a url
on the default browser?

Thanks,

Chad Z. Hower wrote:
sreelakshmi wrote:
How can i launch this url in a new instance of IE?

You could try making a .url file (short cut) and passing that to IE.

--
Chad Z. Hower
Microsoft Regional Director
"Programming is an art form that fights back"
http://www.KudzuWorld.com/
Need a professional technical speaker at your event?
http://www.woo-hoo.net



.



Relevant Pages

  • Re: Is there any hope for Microsoft ?
    ... Check out our XNA game that has your favorite drinking games: ... Chad Z. Hower wrote: ... developers to continue the development. ...
    (borland.public.delphi.non-technical)
  • Re: Is there any hope for Microsoft ?
    ... Check out our XNA game that has your favorite drinking games: ... Chad Z. Hower wrote: ... developers to continue the development. ...
    (borland.public.delphi.non-technical)
  • Re: I really hate .NET especially inside Delphi
    ... Chad Z. Hower wrote: ... Right -- and I'd like to be able to do it apart from binding. ... lightening if you considered that ADO.NET does things differnetly for ...
    (borland.public.delphi.non-technical)
  • Re: I really hate .NET especially inside Delphi
    ... Chad Z. Hower wrote: ... It offers me the ability to easily navigate around the dataset, ...
    (borland.public.delphi.non-technical)
  • Re: Why arent you upgrading?
    ... Chad Z. Hower wrote: ... of ADO.NET do not work as designed in Delphi? ... I am *not* claiming ...
    (borland.public.delphi.non-technical)