Thread: TvDialog
View Single Post
  #1 (permalink)  
Old 07-28-2010, 11:24 AM
derez's Avatar
derez derez is offline
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default TvDialog

I have been using Fg dialog for quite a while and noticed that I don't use the file's details (size,date) and that I have to scroll a lot in the table because it displays only 6.5 files.

I made the attached library for the same use - file and directory browser for the sake of openning or saving a file, or selecting a directory.
The display is by treeview only, with the directories first and then the files, this way you can see a longer list of files after the directory is selected.

It is possible to toggle between sorting by name or by date.

The zip includes the dlls and cs files (yes, this can be merged) and a demo program which also show how to use it.
The last used directory is stored for the next time.

Thanks to Agraham - I learned from his color dialog library how to do it.

Note: I noticed that when using the demo program, second request takes a long time for the dialog to appear. This behaviour is not evidenced in larger size programs, where I get the dialog to appear after 2-4 seconds. I guess its a matter of garbage collection processes.

Edit: - updated to ver 1.1
- updated to ver 1.2 - the icon images are embeded in the code.
- Ver 1.3 enables to define location on screen of the dialog form - Desktop only.
Attached Images
File Type: jpg tvd2.jpg (33.5 KB, 101 views)
Attached Files
File Type: zip Export 1.3.zip (20.5 KB, 63 views)
__________________
David Erez
Ramat Hasharon, Israel

Last edited by derez : 09-02-2010 at 02:33 PM.
Reply With Quote