Groups | Blog | Home
all groups > dotnet compact framework > january 2006 >

dotnet compact framework : internet explorer in VS2005


leibnizster NO[at]SPAM gmail.com
1/31/2006 9:21:34 AM
How can I start an instance of internet explorer in CF 1.1 or 2.0? I
have an icon and whn clicked, I want an external site to be opened in
internet explorer. Can this be done? I'm using C#.



Thanks
Paul G. Tobey [eMVP]
1/31/2006 10:52:11 AM
You'd P/Invoke CreateProcess(). It's wrapped in one of the OpenNETCF SDF
files, Diagnostics\Process.cs. If you have the source for that, you could
just add the declaration to your own code.

[DllImport("coredll.dll", EntryPoint="CreateProcess", SetLastError=true)]
private extern static bool CreateProcess(string pszImageName, string
pszCmdLine, IntPtr psaProcess, IntPtr psaThread, int fInheritHandles, int
fdwCreate, IntPtr pvEnvironment, IntPtr pszCurDir, IntPtr psiStartInfo,
ProcessInfo pi);

and by the way, this is in the archives over and over...

http://groups.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en&lr=lang_en&ie=UTF-8&oe=UTF-8

Paul T.

[quoted text, click to view]

Arun
1/31/2006 9:11:48 PM
Hope this too helps you,
http://www.businessanyplace.net/?p=code#startapp
Cheers,
Arun
AddThis Social Bookmark Button