Form

GPALComboBox

GPALComboBox presents a drop-down list of options from which the user selects one value. Populate it with options from a data source using FillInFrom. The selected value is included in the form data output. In browser automation, the browser's WithSelector and LeftClick with SelectClick handle the web equivalent of a dropdown.

Examples

GPAL Fluent: High-level fluent C# API

//Populate the combo box options with FillInFrom using a grid where each row is one option. The selected item is stored as its string value in the form data grid output.

// Dropdown with static options

GPAL.Form

.WithTitle("Select Status")

.WithFormControl((ComboBox)GPAL.ComboBox

.WithText("Status"))

.ShowDialog();

💬 Ask GPAL