Form

GPALTab

GPALTab creates a Windows TabControl within the form. Add child controls to each tab page to organize a complex form into logical sections. Tabs reduce visual clutter in forms that have many controls by separating them into categories. Use SwitchToTab in Application automation to programmatically switch between tab pages.

Examples

GPAL Fluent: High-level fluent C# API

//Each GPALTab represents one tab page. Nest WithFormControl calls inside the tab to add controls to that page. Controls on all tab pages are included in the form data output regardless of which tab is active.

// Tab control organizing form sections

GPAL.Form

.WithTitle("Configuration")

.WithFormControl((Tab)GPAL.Tab

.WithText("Connection")

.WithFormControl((Input)GPAL.Input

.WithText("Server")))

.WithFormControl((Tab)GPAL.Tab

.WithText("Options")

.WithFormControl((Checkbox)GPAL.Checkbox

.WithText("Enable logging")))

.ShowDialog();

💬 Ask GPAL