Click to See Complete Forum and Search --> : Control for listing files
EEKstream
July 14th, 2006, 01:20 AM
I have a questions. Is there any window control for listing directories And files(right now Im using a treeview control)? I dont want an open dialog or something like that.
Also I have a question about key presses. It would be nice to remove a file by selecting it and press DELETE. But my keypress event only fires for normal keys, like a,b,c and so on, and not for pressing delete. Why?
Shuja Ali
July 14th, 2006, 02:07 AM
There are no inherent comtrols in .NET however you can build your own. This link might help
http://www.c-sharpcorner.com/Code/2002/Feb/FileDialogCB.asp
cjard
July 14th, 2006, 06:40 AM
WHy not jsut use a webbrowser (shdocvw) and navigate to a local folder?
pressing delete also deletes files.. :)
cjard
July 14th, 2006, 06:41 AM
keypress only fires for keys that produce characters, not control codes. use keydown or keyup instead
FoodBard
July 14th, 2006, 02:52 PM
WHy not jsut use a webbrowser (shdocvw) and navigate to a local folder?
pressing delete also deletes files.. :)
that raises security issues...
EEKstream
July 14th, 2006, 05:36 PM
thanks everyone. I think I'll continue to use a treeview, I justed wondered if there was any really nice XP-style-control for this :)
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.