# WebView2

The [**WebView2**](/tB/Packages/WebView2/WebView2/index.md) control hosts the Microsoft Edge browser engine inside a twinBASIC form --- navigate to web pages, run local web apps, exchange messages and method calls with JavaScript, intercept HTTP traffic, and print pages to PDF.

These tutorials demonstrate the most common patterns:

- [Getting started](/Tutorials/WebView2/Getting-Started.md) -- adding the package references and dropping a control onto a form.
- [Customize the UserDataFolder](/Tutorials/WebView2/Customize-UserDataFolder.md) -- relocating the runtime's working folder for hosted scenarios (Office add-ins, kiosk installs).
- [Re-entrancy](/Tutorials/WebView2/Re-entrancy.md) -- what the control's deferred-event machinery does for you, and the one place you still have to think about it.
- [Building a browser shell](/Tutorials/WebView2/Building-A-Browser-Shell.md) -- address bar, back / forward / reload, zoom, PDF export --- turning the control into a working browser.
- [Hosting local web assets](/Tutorials/WebView2/Hosting-Local-Web-Assets.md) -- serve HTML / JS / CSS from a project resource folder, without an HTTP server.
- [JavaScript interop](/Tutorials/WebView2/JavaScript-Interop.md) -- the three bridges between BASIC and the page: host objects, messages, and scripted calls.
- [Driving Monaco from twinBASIC](/Tutorials/WebView2/Driving-Monaco.md) -- a case study combining everything above: embed Microsoft's Monaco editor next to a live HTML preview pane.

The complete sample code for the last four tutorials ships as *Sample 1a --- WebView2 Examples*, the card **WebView2 Examples** in the **Samples** section of the New-Project dialog.

For the full set of members on the control itself, see the [**WebView2** class reference](/tB/Packages/WebView2/WebView2/index.md).
