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 Formand then display the aspx page there itself. But the web page it selfhas 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 whichleads to its parent page when clicked. To achieve this I had to haveall the aspx pages loaded in IE without taking help from the windowsform as then only javascript can identify its parent and activate thesame.
To achieve this I have decided to user System.Diagnositcs.Processclass. Using that I can load new internet explorer and load the aspxpages there itself. Here I have two problems
1) For the IE which get loaded using this method, I can not hide menubar, toolbar and addressbar. There is not method I found to do thesame.2) If at all I go with this method, I can not activate the parentwhich host the Windows User Control from other child IE. As there isnot way to find the parent for the IE which is opened up from theWindows User Control.
For first problem there is one solution that is to use SHDocvw.dll anduse 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 javascriptevents (COM Events) and raise an event from the windows user control.The event handler will be there in Javascript (the IE which host theWindows User Control). In this event handler I can open up all thechild IE and then use the BACK button functionality for the same.
But unfortunately the event handling is not working for me anyway andI 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.