Form

GPALFileSelector

GPALFileSelector provides a text input combined with a browse button that opens the Windows file open dialog. When the user selects a file, the full path is populated into the control. The file path is stored as a string in the form data output. Use it when your automation needs a user-specified file path at runtime.

Examples

GPAL Fluent: High-level fluent C# API

//The selected path is returned as a plain string in the form data grid. Pass it to GPAL.FileFor(path) in your callback to use it as a GPALFile for subsequent operations.

// File selector in a form

GPAL.Form

.WithTitle("Import File")

.WithFormControl((FileSelector)GPAL.FileSelector

.WithText("Source File"))

.ShowDialog();

💬 Ask GPAL