Appearance Region¶
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.
Examples¶
#region Appearance
[System.Windows.Forms.Application]::EnableVisualStyles()
#endregion
References¶
Application.EnableVisualStyles Method (System.Windows.Forms) | Microsoft Learn