Message 1 of 11

Not applicable
01-19-2018
01:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to use the inventor file dialog to allow the user to navigate to select a folder.
I know I could use a windows folder dialog, but I prefer the interface of the file dialog.
You can do this using the windows file dialog by using a filter of "*.none" and then extracting the directory from the filename once the dialog "open" is pressed:
Using obj As New Windows.Forms.OpenFileDialog obj.Filter = "Directories|*.none" obj.CheckFileExists = False obj.CheckPathExists = False obj.InitialDirectory = startPath obj.Title = "Select Save Directory" obj.FileName = "Save Directory" If obj.ShowDialog = Windows.Forms.DialogResult.OK Then savePath = IO.Directory.GetParent(obj.FileName).FullName 'can extract directory from savePath End If End Using
Is there a way to do this with the inventor file dialog? I'd prefer to use the inventor file dialog because it already includes links to the work space and thumbnails etc.
Thanks
Solved! Go to Solution.