GM_Utility .SelectFile Method |
Displays a file dialog that allows the user to select a file to load.
Namespace:GlobalMapper
Assembly: GlobalMapperWrapperNET (in GlobalMapperWrapperNET.dll) Version: 18.0.0.0 (18.0.0.0)

C#
Copy
public static GM_Error_t32 SelectFile(
out string aFilename,
string aFilterStr,
string aInitialDir,
IntPtr aParentWnd
)
Parameters
- aFilename
-
Type:
System
.
String
OUT: selected filename - aFilterStr
-
Type:
System
.
String
Filter string for open dialog (NULL for default) - aInitialDir
-
Type:
System
.
String
Initial directory to start in (NULL for current) - aParentWnd
-
Type:
System
.
IntPtr
Handle (HWND) to parent window for file selection dialog
Return Value
Type: GM_Error_t32A GM Error Code
