I am trying to embed an Internet Explorer control within my application. First, I tried building a simple application using the WebBrowser example in the FAQ (29.1: htmlviewer.zip, HtmlViewer2). It worked fine.
Then I moved it over to my app an it no longer works. As far as I can tell, there''s no difference in the panels other than that I use the Docking package (in DockToFill mode). One of the docked controls is called "panel1". I want to be able to add and remove the browser from this control. Should there be any problem with this?
I''ve included relevant the code below:
// This call is required by the Windows Form Designer.
private void SetupBrowserPanel()
Norgould.UI.WebBrowser.HtmlControl browser = new Norgould.UI.WebBrowser.HtmlControl();
browser.Location = new Point(10,10);
browser.Size = new Size(400,400);
browser.Anchor = AnchorStyles.None;
browser.CascadingStyleSheet = Norgould.UI.WebBrowser.HtmlControl.CopyResourceToTempFile(GetType(), "ie4.css");
browser.Html = "Testing 1 2 3";
(I''ve also tried using Navigate instead of setting browser.Html)
ADAdministrator Syncfusion Team January 13, 2004 04:07 PM
BTW: In the pasted code, HtmlControl is the same as in the zip file in the FAQ except the namespace is changed and I moved CopyResourceToTempFile over HtmlControl.
ADAdministrator Syncfusion Team January 13, 2004 09:30 PM
One more clarification (sorry). It seems that some component is added in that when I move the mouse over the spot where the browser control should be, the mourse pointer changes to an hourglass.
ADAdministrator Syncfusion Team January 14, 2004 12:14 PM
Thanks for bringing this to our attention. Please open an incident in Direct Trac in this regard, and provide us more information on what you are trying to accomplish here. I would appreciate if you could send us a sample application showing the problem that you are facing. Also let us know the version of Essential Suite that you are using. Thanks for your cooperation.