twinBASIC Update: November 24, 2026

Highlights include the new IDE extensibility model in BETA 1045, with four AI-built sample add-ins including an ADO Data Explorer.

twinBASIC Update: November 24, 2026

On April 23, 2021, I helped Wayne Phillips introduce the world to twinBASIC at the Access DevCon Vienna conference. I boldly predicted that twinBASIC (along with the Monaco editor) would replace VBA and its outdated development environment by 2025. (And I was oh so close...) With that goal in mind, this weekly update is my attempt to keep the project fresh in the minds of the VBA development community.

Every Sunday Monday week, I will be providing updates on the status of the project, linking to new articles discussing twinBASIC, and generally trying to increase engagement with the project. If you come across items that should be included here, please leave a comment below.

Here are some links to get involved with the project:


Highlights

* Generated with Claude Opus 5.5

BETA 1045 opens up the twinBASIC IDE itself.

A twinBASIC IDE add-in (a DLL the IDE loads at startup much as the VBA editor loads MZ-Tools or Rubberduck) can now supply a full custom designer: an editor of its own for a kind of file in your project. Add-ins can also add their own top-level menus, or put entries on almost any context menu in the IDE. They can show a built-in datasheet grid and use eight new theme colors so they match the IDE.

Add-ins are written in twinBASIC itself.

To show what the model can do, Wayne had his AI agents build four add-ins and shipped them with the release. He posted the same note with each of the four (ICO, Hex, Diff, Data Explorer):

This is not meant to be feature-complete designer, but rather a starting point to help demonstrate the new Addin Extensibility features available in BETA 1045, and what can be achieved by using AI ๐Ÿ™‚

What it unlocks: if twinBASIC lacks an editor for a file type you care about, you can now build one.

Wayne's advice is to give an LLM the full source of the ICO Designer or Data Explorer and ask it to use that as a reference. dr.bobby did just that, and three days later posted a working color swatches add-in that Claude had written (see Around the Web).

What an add-in looks like: the wiring is familiar territory for VBA developers, using Implements and WithEvents. This is the Hex Editor's entire add-in class. Its three Register calls make it the default editor for .bin and .dat files, and an Open with choice for every other file:

[COMCreatable(False)]
Class HexEditorAddin
    Implements AddIn

    Public WithEvents Host As Host

    Public Sub New(ByVal IDE As Host)
        Set Me.Host = IDE
    End Sub

    Private Property Get AddIn_Name() As String
        Return "Hex Editor"
    End Property

    Private Sub Host_OnProjectLoaded()
        ' NOTE: setting IsDefault:=False means that a right-click 'Open with > Hex Editor' is required to launch it
        Host.Designers.Register "Hex Editor", ".*", New HexEditorFactory(Me), IsDefault:=False, IconData:=HexFileTypeSvg()
        Host.Designers.Register "Hex Editor", ".bin", New HexEditorFactory(Me), IsDefault:=True, IconData:=HexFileTypeSvg()
        Host.Designers.Register "Hex Editor", ".dat", New HexEditorFactory(Me), IsDefault:=True, IconData:=HexFileTypeSvg()
    End Sub
End Class

The real work is the designer itself, about 2,200 lines in this case, and it builds its interface from HTML elements and CSS through the designer host rather than from twinBASIC forms.

How to get them: there's nothing to install. All four add-ins ship in BETA 1045's addins folders, and the Add-Ins menu lists them. Their source projects are under Samples in the New Project dialog, and Wayne plans to put them on GitHub. okas_o has already documented each one, along with the tbIDE package for anyone writing their own.

Data Explorer

The Data Explorer add-in showing Northwind's Customers table in a grid, with the Project Explorer's Add menu open at "Add DATA EXPLORER (.tbdata)"

A read-only grid over any database that ADO can open, with ready-made connection strings for Access (Jet or ACE), SQLite, SQL Server, MySQL, MariaDB and PostgreSQL. Point it at a table, a saved query or an SQL statement. It fetches the rows in blocks on background threads as you scroll, so even a large table opens quickly. Then sort, filter, resize columns, or copy the rows as JSON, CSV or TSV. Each view is a .tbdata file in your project: choose Add โ†’ Add DATA EXPLORER (.tbdata) in the Project Explorer. Wayne calls it "by far my favourite" of the four. Two cautions from the docs: the connection string, password included, is saved in the project, and in BETA 1045 a zero in a number column displays as a blank.

Diff Compare

Diff Compare showing Form1.twin and Form2.twin side by side, with the Project Explorer's right-click menu listing Select for compare, Compare with selected and Compare With

Right-click a file in the Project Explorer and choose Select for compare, then right-click a second file and choose Compare with selected. The two open side by side in the code editor's read-only diff view. Wayne points out a feature he didn't ask for: "the AI agent added cross-instance support for comparing files across different instances of twinBASIC." Select a file in one IDE, then use the Compare With submenu in the other. Docs.

Hex Editor

The Hex Editor add-in showing the bytes of twinBASIC.ico in hexadecimal and ASCII columns

Shows and edits the bytes of any file in the project, in hexadecimal or as text, with insert and overwrite modes, undo, and find and replace by hex bytes, ASCII or UTF-16 text. You can group the bytes as a Byte, Integer, Long or LongLong. Files ending in .bin or .dat open in it on a double-click. Any other file opens in it from the Project Explorer's right-click menu, through Open with โ†’ Hex Editor. That's another new trick for add-ins: registering as an alternative editor for any type of file. Docs.

ICO Designer

The ICO Designer editing the twinBASIC logo icon at 64 pixels, with its drawing tools in the IDE's Toolbox and previews at each size

Double-click an .ico file, such as your project's icon under Resources\ICON, to draw on it at seven sizes from 16 to 256 pixels. The add-in puts its pencil, fill, shape, gradient and selection tools in the IDE's own Toolbox, and shows live previews at each size. Before you edit an existing icon, know that saving keeps only the sizes ticked in the designer, and .cur cursor files open but aren't supported yet. Docs.

Discord Chat Summary

* Auto-generated via Claude Sonnet 5.5

Overview

BETA 1045's add-in extensibility led the week (see Highlights), and okas_o's documentation kept pace with it. Other threads covered compatibility findings, the Target OS Version setting, and tbKMode graduating from experimental.

Addin Extensibility & IDE (BETA 1045)

  • The new add-in designers and menus (see Highlights) were the week's main news, and dr.bobby had a Claude-built add-in working within days (see Around the Web).
  • To rebuild an add-in the IDE has loaded, waynephillipsea recommends building straight into the AppData addins folder and restarting the compiler with Shift held, which skips loading add-ins. okas_o added this to the docs.
  • Putting plain DLLs in the addins folder so Declare statements work in the IDE is fine for now, waynephillipsea says, though a known bug means they aren't unloaded.

Documentation & LLM-Assisted Development

  • okas_o deployed the most significant documentation updates for BETA 1045 and resolved more of Alex Hedley's issues, with #27 and its follow-ups next. okas_o also added a top-level Community page, and the VBCCR18 package docs are taking shape.
  • gcuser99 questioned moving Experimental Packages under Community. okas_o is open to changing it.
  • Gary Miller reported that Copilot now uses the docs site's llms.txt index (covered last week) as a standing reference for twinBASIC questions. okas_o credited Tom van Stiphout with the idea.
  • okas_o has an add-in in the works that will tell an LLM what it can do with twinBASIC. Until then, okas_o suggests opening an LLM workspace in a copy of the documentation repository and asking the agent to read WIP.md.
  • okas_o suggested that IDE buttons whose meaning changes with Alt or Shift get hover text and icon variations. The restart button's hover text currently mentions only Alt. waynephillipsea liked the idea and will look into it.

Command-Line Tooling & Packages

  • Asked about building and testing from the CLI, waynephillipsea pointed to okas_o's tbLaunch for compiling from the command line. okas_o says --help covers most needs and invites requests for anything missing.
  • fafalone updated tbKMode to v0.3.8, and okas_o deployed the matching docs. The package graduates from experimental to a regular package.
  • okas_o traced slow testing to a kernel handle leak in recent AMD graphics drivers (amdkmdag.sys), which slows down every new process.

Bug Reports & Compiler Behavior

  • VanGoghGaming found a VB6 difference: posting WM_KEYDOWN with -1 to a button reports KeyCode as -1 in VB6 but 255 in twinBASIC. waynephillipsea doesn't recall an existing report.
  • fafalone hit [TYPELIB] failed to create typelibrary module API procedure names {internal-missing}. waynephillipsea says it means ICreateTypeInfo::SetFuncAndParamNames failed. fafalone traced it to overloaded API declarations, which aren't allowed.
  • krool5045 confirmed that nested Do/While/Exit Do control flow behaves as in VB6, and noted that the Target OS Version combobox is wider than the other project settings comboboxes.

Language & Platform

  • wqweto proposed named loops, as in other languages, so a nested loop could be exited by label. This is a suggestion, not a planned feature.
Outer:
Do
    Inner:
    Do While 1 <> 2
        Exit Do Outer
    Loop
Loop
  • okas_o explained that Target OS Version sets the earliest Windows version that will run the .exe. It also gates features: fafalone noted that child-control transparency needs Windows 8 (main-form transparency works earlier), and waynephillipsea said it only works if you explicitly target Win 8, through the setting or a manifest. fafalone added that tB EXEs run on XP and later today, with Windows 2000 possible, while only the IDE needs Win 7.
  • waynephillipsea suggested a built-in manifest designer. The community pointed to LaVolpe's Manifest Creator II as a reference, and waynephillipsea expects AI agents could use it to build one.
  • fafalone shared news that Windows Server 2028 will make WoW64 (32-bit app support) an optional component.

Community Highlights

  • The developer of Scoriet, a template-based code generator, joined and asked whether there's interest in a twinBASIC RAD template.
  • Jan Batka's CUDA proof-of-concept (see Around the Web) drew a faster calling technique from fafalone, who noted that LLMs are still catching up on newer twinBASIC features.

Conclusion

BETA 1045's add-in extensibility was the week's main development, and the community is already building on it with LLM help. Next up: okas_o's LLM add-in, a possible manifest designer, and clearer hover text for buttons that change with Alt or Shift.

Around the Web

* Generated with Claude Opus 5.5

Colour Swatches Add-in

A code module with a color swatch at the end of each line that holds a color value, and the color picker open for RGB(89, 129, 171)

If you set colors in code, you know the problem: &H00FF8000& tells you nothing about the color you'll get.

dr.bobby's Colour Swatches add-in fixes that in the twinBASIC code editor. It puts a small swatch at the end of every line that holds a color value: RGB(...), a hex literal, a system color such as &H8000000F& (button face), a vb constant or QBColor(n). Click a swatch to pick a new color, and the add-in rewrites the value in place, in the same style: RGB() stays RGB(), and hex stays hex with the same number of digits. It ignores colors inside strings and comments, and View โ†’ Colour Swatches turns it off.

It also makes a useful second example of the extensibility model in this week's Highlights. Wayne's four samples are designers, editors for whole files. This one has no designer. Instead it adds small HTML widgets to the existing code editor, a menu entry, and a timer that checks for edits, because the code editor raises no event when its text changes. That's about 700 lines of twinBASIC, and dr.bobby is candid about who wrote them: "To be fair Claude did all the work here and not me."

For now it's available only as the .twinproj attached to that post. Building it puts the DLL straight into the IDE's own addins folder, so twinBASIC loads it the next time it starts.

CUDA Mandelbrot Explorer

Posted in show-and-tell by Jan Batka:

TwinBasic 64bit can use CUDA - proof of concept - LLM ๐Ÿ™‚
A Mandelbrot set rendered by twinBASIC on an NVIDIA GPU, with GPU name, render time and keyboard controls shown at the top

It's a Mandelbrot explorer that renders on an NVIDIA graphics card, written with an LLM's help. The project is small: one form and one module. It calls the CUDA driver through ordinary Declare statements. If the CUDA Toolkit is installed, it compiles its GPU code at startup; otherwise it uses a precompiled copy that needs a GTX 16- or RTX 20-series card or newer. It runs only as a 64-bit build. Press B to benchmark the GPU against the same algorithm in single-threaded twinBASIC.

WinDevLib v9.5.766 to v9.5.770

Posted in WinDevLib Updates by fafalone:

Note it turns out both the common ChrW2 functions that are in numerous VBForums posts are incorrect for anything besides Unicode plane 0 and 1.
GitHub - fafalone/WinDevLib: Windows Development Library for twinBASIC
Windows Development Library for twinBASIC. Contribute to fafalone/WinDevLib development by creating an account on GitHub.

Three more releases continue the module-by-module audit: macro helpers such as MAKELONG and MAKELPARAM, Direct3D 9 and 10, DirectSound, DirectInput, DXVA, Portable Devices and HID. v9.5.770 has one breaking change. The ImageMachineType values are no longer forced to a positive Long, so existing code that wraps them in CIntToUInt to compare them is now wrong. Read the README before you update.

Changelog

Here are the updates from the past week. You can also find this information by visiting the GitHub twinBASIC Releases page.

Releases ยท twinbasic/twinbasic
The twinBASIC Programming Language. Contribute to twinbasic/twinbasic development by creating an account on GitHub.

AI-Generated Changelog Summary

* Auto-generated via Claude Sonnet 5.5, sorted in order of its opinion of "most impactful changes."

  • Custom designers for add-ins: Add-ins can now provide full custom designers. The samples include a Hex Editor, an ICO Editor, a Diff Compare tool and a Data Explorer.
  • Built-in datasheet for add-ins: Add-ins can use a datasheet component based on fin-hypergrid, which is shown in the Data Explorer sample.
  • Theming and menu support: Add-in designers and panels get 8 new theme properties, such as AddinBackColor and AddinAccentForeColor, so they can match the IDE's look. Add-ins can also add custom menu entries.
  • Project Explorer integration: Add-ins can now use ProjectExplorer.SelectedItemPath and AddFileUI.
  • Build path variable: Build output paths can now use the ${AppData} variable.
  • Import and loading fixes: Importing .bas, .cls and .twin files now corrects bad line-feeds. A false "SHIFT KEY DETECTED" warning that sometimes blocked add-ins from loading is also fixed.

This is an interim release. Work continues on native file support and on integrating fafalone's work.


WARNING: The following issues are present in each of the releases below:

  • IMPORTANT: This is a BETA release under active development. It is not recommended for production use.

BETA 1045

  • INTERIM RELEASE WHILST ONGOING WORK TO SUPPORT NATIVE FILES AND INTEGRATION OF FAFALONES WORK CONTINUES
  • added: support for full custom Designers in the Addin extensibility model [ see Samples: Designer Hex Editor, Designer ICO Editor, Designer Diff Compare, Designer Data Explore ]
  • added: 8 theme properties for use by Addin designers and panels [ AddinBackColor, AddinPanelBackColor, AddinControlBackColor, AddinBorderColor, AddinForeColor, AddinSecondaryForeColor, AddinAccentBackColor, AddinAccentForeColor]
  • added: support for adding custom Menu entries via the Addin extensibility model [ see Designer Samples ]
  • added: support for ProjectExplorer.SelectedItemPath and AddFileUI via the Addin extensibility model
  • added: support for a built-in datasheet for use via the Addin extensibility model, based on fin-hypergrid [ see Data Explorer sample ]
  • fixed: Import feature now fixes bad line-feeds of source files (.bas/.cls/.twin) during import
  • fixed: intermittent erroneous 'SHIFT KEY DETECTED: DISABLED LOADING OF ADDINS' upon loading a project
  • added: ${AppData} variable support for build string output paths

All original code samples by Mike Wolfe are licensed under CC BY 4.0