internet explorer in VS2005

  • Thread starter Thread starter leibnizster
  • Start date Start date
L

leibnizster

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
 
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/micr...tframework?hl=en&lr=lang_en&ie=UTF-8&oe=UTF-8

Paul T.
 
Back
Top