473,396 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ViewFilesDialog ??

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
Feb 18 '07 #1
2 884
Start with a ListView control and add whatever functionality you wish.
"John Dann" <ne**@prodata.co.ukwrote in message
news:sp********************************@4ax.com...
>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
Feb 18 '07 #2
On Sun, 18 Feb 2007 22:46:27 +1300, "Stephany Young" <noone@localhost>
wrote:
>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
Feb 18 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.