|
-
Jan 16th, 2010, 09:26 AM
#1
Set root folder of DirListBox
I'd really like to use a DirListBox, but I need to be able to set its root folder to something other than "C:\". Anyone know how to do this?
Specifically, I want to create an empty folder tree under Application Data to use as a placeholder. The user will then navigate this temporary folder tree using a DirListBox to select a folder. When done, I delete the temporary folder tree.
The user interface has very little room, making the DirListBox control highly preferable to a treeview. The regular DirListBox shows all parent paths, which in this case will end up being very confusing since the ultimate root folder will appear below the user's Application Data folder.
I'm hoping there is an API command that can simply overwrite the DirListBox's internal "RootPath" variable with whatever the programmer wants. Probably as simple as using SendMessage API.
Last edited by Ellis Dee; Jan 16th, 2010 at 09:52 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|