![]() |
#1
|
||||
|
||||
![]()
CorelDRAW 11 / 12: I need to browse for a folder....I am trying to use Alex's code from his Thumnailer program. It works fine except if I go back to the BrowseFolder window is doesn't remember what folder was selected. It alwasy defaults to My Computer. It does remember the folder in the Thumbnailer version. The only line I changed was this:
Code:
sFolder = BrowseForFolder(AppWindow.Handle, "Select the folder to process", sFolder) If sFolder <> "" Then txtSource.Text = MergeMask(sFolder, sMask) End If Change to: Dim sFolder As String sFolder = BrowseForFolder(AppWindow.Handle, "Select the Folder Where Your Files Will Be Stored.", sFolder) If sFolder <> "" Then txtPath.Text = sFolder End If Shelby |
#2
|
||||
|
||||
![]()
Shelby,
Do you retrieve the previous folder path from your text box into sFolder variable? Note that it is passed as an input parameter (the last parameter) for BrowserForFolder function? In theory, you need something like this (note the last parameter): Code:
Dim sFolder As String sFolder = BrowseForFolder(AppWindow.Handle, "Select the Folder Where Your Files Will Be Stored.", txtPath.Text) |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Browse Dialog | ddonnahoe | CorelDRAW/Corel DESIGNER VBA | 15 | 27-01-2004 11:51 |