I found a bug in the StartNewWindow event handler. If in the handling there is a string.Format called on a constant string, then even if the Cancel argument is set to true, the pop up shows up. To reproduce:
This set of classes does solve a lot of problems, except one annoying one: when I go to the Internet Explorer settings and in "Accessibility" choose to ignore all page formatting, that also affects the ExtendedWebBrowser.
Do you know how I could tell the ExtendedWebBrowser to ignore those Internet Explorer settings?
I have developed an application using WebBrowser control under the .Net 2.0 framework which enables the user to navigate Web pages inside the form.
In this application the user visits web-sites in WebBrowser control.
Whichever sites he is visiting I am recording all sites along with PostData, Url and Frame information in the XML file.
Before navigating the following event is raised up and in that event I am saving the navigation information in XML file.
Protected Friend Sub OnNavigatingExtended(ByVal Url As String, ByVal Frame As String, ByVal Postdata As Byte(), ByVal Headers As String, ByRef Cancel As Boolean)
Dim e As WebBrowserNavigatingExtendedEventArgs = New WebBrowserNavigatingExtendedEventArgs(Url, Frame, Postdata, Headers)
'Save data to XML file if not in Replay mode.
If recordFlag = True Then
Dim xFunctions As New XMLFunctions
stepNo = xFunctions.WriteRequest(stepNo, Url, Frame, e.PostdataToString(Postdata), Headers, Cancel.ToString)
'This is fucntion is written in another class and it stores the information into XML file.
RaiseEvent NavigatingExtended(Me, e)
Cancel = e.Cancel
So after recording all navigations I replay those to let user know which steps he has done and also take him to that page where he has left last time.
My problem is that when I replay the navigations then if on the navigation user has downloaded any file then pop-up occurs (ie. PopUp of Open/ Save/ Cancel) to wait for users’ input.
Please tell me how to avoid this Pop-up which asks user to download or open the file.
Hi, i'd like to use this control by dropping it on a vb form. I try to make control from c# project in my project and run as user control, but can't seem to do so. Any one been able to make a redistributable control out of this that can be dropped into another project like a vb project?
I'm processing the StartNewWindow-Event to preserve sessions similar to the ExtendedWebbrowser-Control but as a result i'm showing a new Form Window with another embedded Webbrowser-Object.
This actually works fine but i have the following problem:
How can i detect the size of the newly created HTML-Popup-Window and ajust my Container-Form accordingly? I tried using the Document.Window.Position and Document.Window.Size Properties in the DocumentCompleted-Event of the newly created Browser and adjusted my Form window with them but unfortunately this is not the same size as the windows would show up using InternetExplorer.
Converting them to screen-coordinates didn't help either so i got a little stuck at this point.
I get the following errors when I include the ExtendedBrowser class in my project and try to build:
1 'System.Drawing.UnsafeNativeMethods' is inaccessible due to its protection level C:\Documents and Settings\vulfie\My Documents\Visual Studio 2005\Projects\ExtendTheBrowser\Form1.cs 36 13 ExtendTheBrowser
2 The type name 'IWebBrowser2' does not exist in the type 'System.Drawing.UnsafeNativeMethods' C:\Documents and Settings\vulfie\My Documents\Visual Studio 2005\Projects\ExtendTheBrowser\Form1.cs 36 33 ExtendTheBrowser
3 The type or namespace name 'PermissionSet' could not be found (are you missing a using directive or an assembly reference?) C:\Documents and Settings\vulfie\My Documents\Visual Studio 2005\Projects\ExtendTheBrowser\Form1.cs 46 6 ExtendTheBrowser
4 The type or namespace name 'PermissionSet' could not be found (are you missing a using directive or an assembly reference?) C:\Documents and Settings\vulfie\My Documents\Visual Studio 2005\Projects\ExtendTheBrowser\Form1.cs 61 6 ExtendTheBrowser
Any ideas? I have .NET 3.0 installed, as well as 2.0.
Any feedback would be most appreciated.
-- modified at 1:29 Thursday 4th October, 2007
Last Visit: 31-Dec-99 19:00 Last Update: 23-Feb-24 10:59