Open File Dialog Box (.net)
Sunday, January 11, 2004
The biggest problem of standard File Open Dialog Box - that this dialog doesn't supported multiply file selection. You can select only one file (I don't know why this useful mode don't supported by NI).
Second problem of standard LabVIEW - based dialog - you cannot define more than one pattern. As result our Fileopen Dialog looks like this:
On NI web-site we can found solution - but this one produced non-standard type of dialog ("non-Windows style").
Easyiest way to access OpenFileDialog with all standard possibilities - using .net components (available only in LabVIEW 7.0 or above)
For calling Open File Dialog following code can be used:
In code above following constructor was used:
And now we can select multiple files, and also multiple patterns are available for us:
Now only one problem exists: this dialog not modal. You can make some experiments yourself with setting owner propery for this dialog. Source code for example above can be downloaded here.