We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Building a browser

Thread ID:





22123 Dec 3,2004 11:27 AM UTC Sep 13,2005 07:26 AM UTC WinForms 4
Tags: HTMLUIControl
Administrator [Syncfusion]
Asked On December 3, 2004 11:27 AM UTC

Our interest in the HTMLUI control is to actually create a replacement for the MS Web Browser ActiveX control. I realize the HTMLUI control isn''t a browser, and we can handle most of the stuff, but there are a few issues that are a problem. 1: Why isn''t it derived from the Syncfusion scroll control? It''s derived from the System.Windows.Forms.ScrollControl. Our initial interest in going this route was because we want to use our own scroll controls to give the browser our look and feel. We couldn''t do that with the MS ActiveX and we were sure we''d be able to do it with the HTML UI. Any chance that will change? 2: I can handle the getting data for the HTMLUI control from the web. Where I run into issues is with things like image references. Is there an event I can handle to get the data from the browser control? Here''s kind of what I''ve done. Let''s say I go to www.google.com. I do a web request, convert the response stream to a memory stream (so seek will work), and then call the HTMLUIControl.LoadHTML(stream). Now, that HTML document may have references to images that aren''t local. Is there any way I can determine this and get the data for the control? Thanks

Davis Jebaraj [Syncfusion]
Replied On December 3, 2004 08:21 PM UTC

Hi Pete, Thanks for the feedback. 1. We will change the implementation of HTMLUIControl to use Syncfusion scroll control. I have asked the development team to look into this and they should be making the change within the next few days. 2. Currently, it would be possible to change the src attribute of the img tag by handling the PreRenderDocument event of the HTMLUIControl. I will work on a sample and send it over to you at the earliest. Thank you for your patience. Regards, Davis

Rainer Schumann
Replied On September 9, 2005 08:18 AM UTC

Hi Davis, > >2. Currently, it would be possible to change the src attribute of the img tag by handling the PreRenderDocument event of the HTMLUIControl. I will work on a sample and send it over to you at the earliest. > Could I get this example, too? I am currently trying to load a html-page from a resource and to make the htmlui load the images from a stream, to no avail TIA Rainer

Nandakumar R [Syncfusion]
Replied On September 12, 2005 12:43 PM UTC

Hi Rainer, Please refer to the sample linked to below for accessing the src attribute of any image and changing it in the PreRenderDocument handler . Please try the sample and let me know if it helps. 22123_htmluiimgload.zip Thank you for your interest in Syncfusion products. Regards, Nanda.

Rainer Schumann
Replied On September 13, 2005 07:26 AM UTC

Hi Nanda, thanks for your answer! As mentioned in my post, my problem was slightly different, but the example gives hints in the correct direction. I could solve my original problem (load images referenced in a html-page from a stream) by connecting the NoImage events for all relevant tags in the PreRenderDocument Event and then hook up the streams in the NoImage events. The crucial part was, to set the stream AND key property, a fact that was not easily found out by looking into the documentation (it is a bit ''sparse'' at times). Thanks again for the speedy reply, that is definitely above standard. Regards Rainer


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon