HighTechTalks DotNet Forums  

How to open an IE window in my applications?

Dotnet Framework (Compact Framework) microsoft.public.dotnet.framework.compactframework


Discuss How to open an IE window in my applications? in the Dotnet Framework (Compact Framework) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
rainlake
 
Posts: n/a

Default How to open an IE window in my applications? - 11-30-2004 , 08:26 PM






I want to open an IE window in my application in Compact Framework,how?

Thanks a lot!



Reply With Quote
  #2  
Old   
Ginny Caughey [MVP]
 
Posts: n/a

Default Re: How to open an IE window in my applications? - 11-30-2004 , 08:32 PM






One way is to use OpenNetCF Process.Start.
--
Ginny Caughey
..Net Compact Framework MVP



"rainlake" <abc (AT) abc (DOT) com> wrote

Quote:
I want to open an IE window in my application in Compact Framework,how?

Thanks a lot!




Reply With Quote
  #3  
Old   
rainlake
 
Posts: n/a

Default Re: How to open an IE window in my applications? - 11-30-2004 , 08:47 PM



Ginny thank you very much.
do u have more solutions without using OpenNetCF?

"Ginny Caughey [MVP]" <ginny.caughey.online (AT) wasteworks (DOT) com> 写入消息新闻:eg$M7301EHA.3000 (AT) TK2MSFTNGP15 (DOT) phx.gbl...
Quote:
One way is to use OpenNetCF Process.Start.
--
Ginny Caughey
.Net Compact Framework MVP



"rainlake" <abc (AT) abc (DOT) com> wrote in message
news:e0RjB101EHA.1408 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
I want to open an IE window in my application in Compact Framework,how?

Thanks a lot!






Reply With Quote
  #4  
Old   
Peter Foot [MVP]
 
Posts: n/a

Default Re: How to open an IE window in my applications? - 12-01-2004 , 03:06 AM



You can download the source for the class (www.opennetcf.org/sourcebrowse)
or just p/invoke CreateProcess directly
http://www.opennetcf.org/forums/topic.asp?TOPIC_ID=63

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

"rainlake" <abc (AT) abc (DOT) com> wrote

Quote:
Ginny thank you very much.
do u have more solutions without using OpenNetCF?

"Ginny Caughey [MVP]" <ginny.caughey.online (AT) wasteworks (DOT) com
写入消息新闻:eg$M7301EHA.3000 (AT) TK2MSFTNGP15 (DOT) phx.gbl...
One way is to use OpenNetCF Process.Start.
--
Ginny Caughey
.Net Compact Framework MVP



"rainlake" <abc (AT) abc (DOT) com> wrote in message
news:e0RjB101EHA.1408 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
I want to open an IE window in my application in Compact Framework,how?

Thanks a lot!








Reply With Quote
  #5  
Old   
Paul G. Tobey [eMVP]
 
Posts: n/a

Default Re: How to open an IE window in my applications? - 12-01-2004 , 09:15 AM



And *please* check the archives before asking a new question. This one
comes up *very* frequently. Here's a starting point for your search:

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

Paul T.

"Peter Foot [MVP]" <feedback (AT) no-spam (DOT) inthehand.com> wrote

Quote:
You can download the source for the class (www.opennetcf.org/sourcebrowse)
or just p/invoke CreateProcess directly
http://www.opennetcf.org/forums/topic.asp?TOPIC_ID=63

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

"rainlake" <abc (AT) abc (DOT) com> wrote in message
news:%23U%23TvA11EHA.2600 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
Ginny thank you very much.
do u have more solutions without using OpenNetCF?

"Ginny Caughey [MVP]" <ginny.caughey.online (AT) wasteworks (DOT) com
写入消息新闻:eg$M7301EHA.3000 (AT) TK2MSFTNGP15 (DOT) phx.gbl...
One way is to use OpenNetCF Process.Start.
--
Ginny Caughey
.Net Compact Framework MVP



"rainlake" <abc (AT) abc (DOT) com> wrote in message
news:e0RjB101EHA.1408 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
I want to open an IE window in my application in Compact Framework,how?

Thanks a lot!










Reply With Quote
  #6  
Old   
Tarh ik
 
Posts: n/a

Default RE: How to open an IE window in my applications? - 12-01-2004 , 09:33 AM




Hi RainLake!!!

The following code works for me. I'm copying & pasting it with no
guaranties that it will work for you. In fact, you might also need to review
it. Why am I posting it then??? Because I also copied it for myself from
another posting about 3 months ago!!!!

Public oMyProcessInfo As ProcessInfo = Nothing
Public blnWasInternetExplorerLaunched As Boolean

'***** Windows Function Declarations... *****'
Declare Function CloseHandle Lib "CoreDll.dll" (ByVal Handle As IntPtr)
As Int32
Declare Function CreateProcess Lib "CoreDll.dll" (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 lpszCurrentDir
As IntPtr, _
ByVal si As Byte(), _
ByVal pi As
ProcessInfo) As Integer
Declare Function GetLastError Lib "CoreDll.dll" () As Int32





'***** Routines... *****'
Public Function LaunchMSIE(ByVal strURL As String) As Boolean
Dim lngResult As Int32
Dim lngErrorCode As Int32
Dim si(128) As Byte
Dim WAIT_OBJECT_0 As Int32 = 0

Try
blnWasInternetExplorerLaunched = False
If (Not (oMyProcessInfo Is Nothing)) Then
CloseMSIE()
End If
oMyProcessInfo = New ProcessInfo

lngResult = CreateProcess("IExplore.exe", strURL, IntPtr.Zero,
IntPtr.Zero, 0, 0, IntPtr.Zero, IntPtr.Zero, si, oMyProcessInfo)
If (lngResult = 0) Then
lngResult = CreateProcess("IESample.exe", strURL,
IntPtr.Zero, IntPtr.Zero, 0, 0, IntPtr.Zero, IntPtr.Zero, si, oMyProcessInfo)
If (lngResult = 0) Then
lngErrorCode = GetLastError()
blnWasInternetExplorerLaunched = False
Else
blnWasInternetExplorerLaunched = True
End If
Else
blnWasInternetExplorerLaunched = True
End If

Catch ex As Exception

End Try

Return blnWasInternetExplorerLaunched
End Function




Public Sub CloseMSIE()
If ((Not (oMyProcessInfo Is Nothing)) And _
(blnWasInternetExplorerLaunched = True)) Then
Try
CloseHandle(oMyProcessInfo.hThread)
CloseHandle(oMyProcessInfo.hProcess)
Catch ex As Exception
End Try
oMyProcessInfo = Nothing
End If
End Sub


Hope it helps!!!

Tarh ik
PS: This posting has been posted "AS IS". As such, I'm not responsible for
this piece of code. Use it on your own.


Reply With Quote
  #7  
Old   
rainlake
 
Posts: n/a

Default Re: How to open an IE window in my applications? - 12-01-2004 , 10:39 AM



Thank u all about this .
but i want to reduce my application's size and memeory occuption
I just want to use the standerd cf
"Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT com> 写入消息新闻:OkiVUj71EHA.3816 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
Quote:
And *please* check the archives before asking a new question. This one
comes up *very* frequently. Here's a starting point for your search:

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

Paul T.

"Peter Foot [MVP]" <feedback (AT) no-spam (DOT) inthehand.com> wrote in message
news:u5xtaU41EHA.1564 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
You can download the source for the class
(www.opennetcf.org/sourcebrowse) or just p/invoke CreateProcess directly
http://www.opennetcf.org/forums/topic.asp?TOPIC_ID=63

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

"rainlake" <abc (AT) abc (DOT) com> wrote in message
news:%23U%23TvA11EHA.2600 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
Ginny thank you very much.
do u have more solutions without using OpenNetCF?

"Ginny Caughey [MVP]" <ginny.caughey.online (AT) wasteworks (DOT) com> 写入消息新闻:eg$M7301EHA.3000 (AT) TK2MSFTNGP15 (DOT) phx.gbl...
One way is to use OpenNetCF Process.Start.
--
Ginny Caughey
.Net Compact Framework MVP



"rainlake" <abc (AT) abc (DOT) com> wrote in message
news:e0RjB101EHA.1408 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
I want to open an IE window in my application in Compact Framework,how?

Thanks a lot!












Reply With Quote
  #8  
Old   
Paul G. Tobey [eMVP]
 
Posts: n/a

Default Re: How to open an IE window in my applications? - 12-01-2004 , 10:44 AM



Huh? How does that response apply to *looking* for the answer to a question
before *asking* the question?!

If, as I suspect, you are talking about OpenNETCF, then *think* about what
you're saying before you say it. OpenNETCF has source available. You can
use just what you need, if you want to.

Paul T.

"rainlake" <abc (AT) abc (DOT) com> wrote

Quote:
Thank u all about this .
but i want to reduce my application's size and memeory occuption
I just want to use the standerd cf
"Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT com
写入消息新闻:OkiVUj71EHA.3816 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
And *please* check the archives before asking a new question. This one
comes up *very* frequently. Here's a starting point for your search:

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

Paul T.

"Peter Foot [MVP]" <feedback (AT) no-spam (DOT) inthehand.com> wrote in message
news:u5xtaU41EHA.1564 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
You can download the source for the class
(www.opennetcf.org/sourcebrowse) or just p/invoke CreateProcess directly
http://www.opennetcf.org/forums/topic.asp?TOPIC_ID=63

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

"rainlake" <abc (AT) abc (DOT) com> wrote in message
news:%23U%23TvA11EHA.2600 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
Ginny thank you very much.
do u have more solutions without using OpenNetCF?

"Ginny Caughey [MVP]" <ginny.caughey.online (AT) wasteworks (DOT) com
写入消息新闻:eg$M7301EHA.3000 (AT) TK2MSFTNGP15 (DOT) phx.gbl...
One way is to use OpenNetCF Process.Start.
--
Ginny Caughey
.Net Compact Framework MVP



"rainlake" <abc (AT) abc (DOT) com> wrote in message
news:e0RjB101EHA.1408 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
I want to open an IE window in my application in Compact
Framework,how?

Thanks a lot!














Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.