Skip to content

Appearance

The Appearance region is used to call the EnableVisualStyles static .NET function which enables visual styles for the application - no other code should exist in this region. Visual styles provides a modern and aesthetically pleasing appearance, that matches operating system theme, to the ScriptoForm. The EnableVisualStyles function is defined in the System.Windows.Forms namespace and must be called after loading the assembly for it.

This region is denoted with the #region Appearance tag and occurs between the Assemblies and Controls regions in a ScriptoForm script.

PowerShell
#region Appearance
[System.Windows.Forms.Application]::EnableVisualStyles()
#endregion

Application.EnableVisualStyles Method (System.Windows.Forms) | Microsoft Learn