ViewFilesDialog ??

  • Thread starter Thread starter John Dann
  • Start date Start date
J

John Dann

I may be missing something obvious here, but is there some
straightforward way, using a .Net Winform control in VB2005, of
displaying the contents of a folder as a file listing with the option
- eg via a right-click menu - to delete one or more files? (I want to
present the user with the contents of a fairly obscure,
program-specific folder without them needing to use eg Windows
Explorer as a separate action.)

My immediate reflex was to use the common dialog control but then I
realised that I don't specifically want to open a file nor save one so
the exact layout of the dialogs for these two options isn't ideal.

JGD
 
Start with a ListView control and add whatever functionality you wish.

Yes, I did wonder if that was the only option - it's just another form
and block of code to write and debug, whereas the File CD controls are
pretty much off-the-shelf. But it does seem to be a weakness of the CD
controls that there's no simple View Files option with right-click
menus enabled as in WE - there are more things one commonly wants to
do with files than just open or save.

Thanks anyway.

JGD
 
Back
Top