If we were opting to allow multiple file selection (passing AllowMultiple as an additional flag to the fifth argument), then we would access the files returned using ofd.GetFileNames() to access an array of strings. The fifth argument is for flags: we're choosing not to copy remote files locally if selected via a URL, in this case.The fourth argument is an internal identifier used to store data about the dialog, such as size, position and last navigated path (this data will be picked up automatically the next time the identifier is used).You can provide multiple file extensions upon which to filter in the third argument, separated by semi-colons.You can pass in a default filename in the second argument, but in our case it isn't appropriate.
0 Comments
Leave a Reply. |