Help ! Urgent ! Windows User Control Hosted in IE

Dec 21 2007 6:46 PM

Hi Friends,

I am having problem in using Windows user control hosted in IE.

I have hosted my windows User control in IE. It is working fine.

Now in User control we have combobox from where user can activate ASPX pages.

currently I am using WebBrowser object to load the IE in Windows Form
and then display the aspx page there itself. But the web page it self
has many other links which gets open in new IE having no toolbar,
addressbar and menubar.

Now the requirement is to have BACK button on every aspx page which
leads to its parent page when clicked. To achieve this I had to have
all the aspx pages loaded in IE without taking help from the windows
form as then only javascript can identify its parent and activate the
same.

To achieve this I have decided to user System.Diagnositcs.Process
class. Using that I can load new internet explorer and load the aspx
pages there itself. Here I have two problems

1) For the IE which get loaded using this method, I can not hide menu
bar, toolbar and addressbar. There is not method I found to do the
same.
2) If at all I go with this method, I can not activate the parent
which host the Windows User Control from other child IE. As there is
not way to find the parent for the IE which is opened up from the
Windows User Control.

For first problem there is one solution that is to use SHDocvw.dll and
use the COM interop and hide the menu bar, toolbar and addressbar.
Which I need to try it out and see how it works.

Also for second problem I have solution that is to use javascript
events (COM Events) and raise an event from the windows user control.
The event handler will be there in Javascript (the IE which host the
Windows User Control). In this event handler I can open up all the
child IE and then use the BACK button functionality for the same.

But unfortunately the event handling is not working for me anyway and
I am not able to achieve the functionality.

Kindly suggest me some solution which make me achieve the required goal.

mail: [email protected]

Thanks in advance.