TCnWebBrowser.DocumentStream Property

Gets or sets a stream containing the contents of the Web page displayed in the TCnWebBrowser control.

Namespace: CNClrLib.Control.WebBrowser
public
 property DocumentStream: _Stream read GetDocumentStream write SetDocumentStream;

Property Value

Type: _Stream

 

Use this property to load a Web page into the TCnWebBrowser control from a Stream object. You can use this property, for example, to load Web pages from a database or resource file. When you set this property, the TCnWebBrowser control automatically navigates to the about:blank URL before loading the specified text. This means that the OnNavigating, OnNavigated, and OnDocumentCompleted events occur when you set this property, and the value of the Url property is no longer meaningful.