# Tutorials

Tutorials are step-by-step guides focused on specific topics. For a categorical reference of language constructs, see the [Reference section](/Reference.md); for feature overviews, see [Features](/Features/index.md).

**Foundations:**

- [**Hello World**](/Tutorials/Hello-World.md) -- create a Standard EXE project, drop a button onto a form, and run your first twinBASIC application. No prior experience assumed.
- [**Forms basics**](/Tutorials/Forms.md) -- adding controls to a form, naming conventions, the Properties window, common events, and runtime vs. design-time property changes. Builds a temperature converter.
- [**Calling the Windows API**](/Tutorials/Windows-API.md) -- writing `Declare` statements, 32/64-bit considerations with `PtrSafe` and `LongPtr`, and reading error information. Tracks the mouse cursor position live.
- [**Writing unit tests with Assert**](/Tutorials/Testing-with-Assert.md) -- the **Assert** package's three modules, test-Sub patterns, running from the CodeLens bar or F5, and testing error paths.

**Reference topics:**

- [**Arrays**](/Tutorials/Arrays.md) -- fixed and dynamic arrays, `Dim` and `ReDim`, bounds, and multi-dimensional shapes. No prior twinBASIC experience assumed.

**Control and browser embedding:**

- [**CustomControls**](/Tutorials/CustomControls/index.md) -- building owner-drawn controls with the `Waynes…` framework: painting, event handling, the property sheet, and the DESIGNER surface.
- [**WebView2**](/Tutorials/WebView2/index.md) -- embedding the Microsoft Edge runtime inside a form: local asset hosting, JavaScript interop, message exchange, and a Monaco-editor case study.
- [**CEF**](/Tutorials/CEF/index.md) -- embedding Chromium inside a form: the same patterns as WebView2 but with a developer-controlled browser runtime that ships alongside the application.
