Friday, March 16, 2012

Open a URL in Mobile Web Browser

AFAIR the System.Diagnostics.Process class is not supported in the compact
framework, and that would be why the last method you tried is not working.

I did find this on Google groups though

http://groups.google.com/groups?q=L...tngxa08&rnum=10

Basically it walks through using the CreateProcess API call to run a process
withina C# app on a PocketPC.

Hope that helps,

--
------------------
Peter Wright (www.petewright.org)
Author of ADO.NET Novice To Pro
From Apress. www.apress.com (and 10
other doorstops from Wrox)

"JohnG" <anonymous@dotnet.itags.org.discussions.microsoft.com> wrote in message
news:18DE7ABD-57E4-478D-AC65-4C727889226C@dotnet.itags.org.microsoft.com...
> Hi,
> I am using an iPaq running Windows Mobile 2003 to contact a laptop (acting
as a web server). I am writing an app in VS .NET 2003 (VB.NET).
> I wish to open a url without using a built-in hyperlink data-type as I
need to crunch some code to determine how to populate the page (on load) I
wish to open.
> I have tried this;
> page.Controls.Add(New LiteralControl("<script
> language=javascript>window.open
(""http://www.microsoft.com"",""PageName"",""width=424,height=768,top=0,left
=525,toolbar=yes,location=yes,directories=yes,stat us=no,menubar=yes,scrollba
> rs=yes,resizable=yes"")</script>"))
> which works locally on the laptop, but not on the iPAQ.
> I have tried;
> system.diagnostics.process.start("IEXPLORE.EXE", "http://myurl")
> which compiles, but does nothing.
> Am I missing something?
> Most grateful for any help, thanks,
> JohnPete,

Thanks for your suggestion, but it's all gobbldygook to me

I only really understand VB

John

0 comments:

Post a Comment