CreateNoWindow

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to start a process that will show an html based help system from my application.
It seems every time the Process.Start("Iexplore.exe", "myhelp.html") is executed a new instanc
of IE is created. This is not really what I want. I want to be able to use an existing IE window.
There is CreateNoWindow property of processstartinfo class but this property seems to have
no effect. Is this a bug or am I missing something here?
 
client-side JavaScript: window.open("url");

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
Hi Norm,

Thanks for posting in the community!
From your description, you'd like to open some certain html document in
your web application. You used the "Process.Start" to launch the IE window
and found that every time a new ie instance will be started to open the
certain html
document ,and you've tried setting the "CreateNoWindow" property but with
no success, yes?

As for this problem, here are my suggestions:
1. The "CreateNoWindow" is not used for specify whether reuse a existing
window or not , but used to indicate whether this is a GUI based app. So it
won't help us in this issue.

2. As for everytime IE will lanuched a new instance, this is due to the
behavior of the IE's shell. If you do want to share a single IE instance to
navigator multi- documents, you need to use COM interop to create a COM
interface and then, you can use its methods such as "Navigator2()" to
display multi-html docs using a single broswer's instance. Here are some
tech artiels on this:

#Handling Events Raised by a COM Source
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconhandlingeventsrais
edbycomsource.asp?frame=true

#Creating an Instance of Internet Explorer in C#
http://www.c-sharpcorner.com/Code/2002/Dec/IEInstance.asp

#Create and use the COM object InternetExplorer.Application
http://www.novicksoftware.com/TipsAndTricks/tip-csharp-open-ie-browser.htm

3. In addition, I think you may also considering using the WebBrowser
Control(Activex control). You may create a custom winform and add a
WebBroswer control on it. Then, every time you want to show html help doc,
you can open the custom winform and use the webbrowser control to display
the certain html page. Do you think so? Here is a tech article on hosting
WEbBrowser control in .NET Winform:

#How can I host a WebBrowser control in a Windows Form?
http://www.syncfusion.com/faq/winforms/search/645.asp


Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
 
Back
Top