Opening Internet Explore through code

  • Thread starter Thread starter B
  • Start date Start date
Hi,
head over to www.opennetcf.org, but meanwhile, a sample of loading the help
on PPC...


Public Declare Function CreateProcess Lib "Coredll" Alias "CreateProcessW"
( _
ByVal imageName As String, _
ByVal cmdLine As String, _
ByVal lpProcessAttributes As IntPtr, _
ByVal lpThreadAttributes As IntPtr, _
ByVal boolInheritHandles As Int32, _
ByVal dwCreationFlags As Int32, _
ByVal lpEnvironment As IntPtr, _
ByVal lpCurrentDir As IntPtr, _
ByVal si() As Byte, _
ByVal pi As ProcessInfo) As Int32

Private Sub mnuHelp_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles mnuHelp.Click
Dim iRet As Integer
Dim si(128) As Byte
Dim pi As New ProcessInfo
Dim Topic As String

iRet = CreateProcess("\Windows\PegHelp.exe", "ringwaydrs.htm#Vehicle
Inspections", IntPtr.Zero, IntPtr.Zero, 0, 0, IntPtr.Zero, IntPtr.Zero, si,
pi)
End Sub


Pete
--
Pete Vickers
Microsoft Windows Embedded MVP
HP Business Partner
http://www.gui-innovations.com
 
Thanks this works.

Pete Vickers said:
Hi,
head over to www.opennetcf.org, but meanwhile, a sample of loading the help
on PPC...


Public Declare Function CreateProcess Lib "Coredll" Alias "CreateProcessW"
( _
ByVal imageName As String, _
ByVal cmdLine As String, _
ByVal lpProcessAttributes As IntPtr, _
ByVal lpThreadAttributes As IntPtr, _
ByVal boolInheritHandles As Int32, _
ByVal dwCreationFlags As Int32, _
ByVal lpEnvironment As IntPtr, _
ByVal lpCurrentDir As IntPtr, _
ByVal si() As Byte, _
ByVal pi As ProcessInfo) As Int32

Private Sub mnuHelp_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles mnuHelp.Click
Dim iRet As Integer
Dim si(128) As Byte
Dim pi As New ProcessInfo
Dim Topic As String

iRet = CreateProcess("\Windows\PegHelp.exe", "ringwaydrs.htm#Vehicle
Inspections", IntPtr.Zero, IntPtr.Zero, 0, 0, IntPtr.Zero, IntPtr.Zero, si,
pi)
End Sub


Pete
--
Pete Vickers
Microsoft Windows Embedded MVP
HP Business Partner
http://www.gui-innovations.com

B said:
Thsnks but any examples using vb.net? New to compact framework

"Pete Vickers [eMVP]" <pete at gui - innovations dot com> wrote in message
Hi,
just use the CreateProcess API to start iexplore

Pete

--
Pete Vickers
Microsoft Windows Embedded MVP
HP Business Partner
http://www.gui-innovations.com

Ho do you open Internet Explore through code?
 
Back
Top