Click or drag to resize
CGUIIiCustomFileForm Method (IWin32Window, String, String, String, String, Int32, Int32)
General file Open/Save Form for Multiple/Single file selections and custom filter capability

Available since Oasis montaj version: 9.3.0
Limitations: May not be available if running outside of a Oasis Montaj or from a command line program.  
License: Available to anyone.  

Namespace: Geosoft.Desktop.GXNet
Assembly: geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll)
Notes
Remember to make the string size big enough for multiple file selections. In the case of multiple selections the names will be separated by a semicolon and only the first file will contain the full path.
Syntax
public static int IiCustomFileForm(
	IWin32Window owner,
	string str1,
	string str2,
	string str3,
	ref string str4,
	int i5,
	int i6
)

Parameters

owner
Type: System.Windows.FormsIWin32Window
The IWin32Window the message box will display in front of.
str1
Type: SystemString
Title of the Form
str2
Type: SystemString
Custom filter.
str3
Type: SystemString
Default value
str4
Type: SystemString
Where the file name(s) is returned
i5
Type: SystemInt32
See FILE_FORMConstant
i6
Type: SystemInt32
Allow Multiple file selections = TRUE Single file selections = FALSE

Return Value

Type: Int32
0 - Ok 1 - Cancel
See Also