How may I show an HTML file in a TWebBrowser component?

479 Views Asked by At

I'm using C++ Builder XE8. I want to show 4 HTML files in a TWebBrowser component.

How may I show an HTML file in a TWebBrowser component?

1

There are 1 best solutions below

0
HappyCoding On

Given you already have created a TWebBrowser component and named it WebBrowser1, use the following code.

WebBrowser1->Navigate("insertPathToHtmlFileHere");

Remy Lebeau mentioned documentation. Below are two helpful sources.

Sources to check out:
Building a VCL Forms Web Browser Application
TWebBrowser.Navigate