index > Visual C# General > how to browse a directory?

how to browse a directory?

Hi all,

May I know how to browse the files in a directory using c#?

bslim
Use OpenFileDialog component, it is one of the listed component in Visual Studio's toolbox. For more information, read from here:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsopenfiledialogclasstopic.asp

Regards,

-chris


Mark the best replies as Answers! | Blog: http://community.devpinoy.org/blogs/cvega
Chris Vega
reply 2

You can use google to search for other answers

 

More Articles

• Windows switching
• DateTime problem (julian date system)
• Newbie to C# - documented differences between ansi C and using C#
• How do i make textbox unselectable ?
• i have installed .net 2005 professional edition
• Time formatting
• using the TabControl (Custom?) from the IDE...
• Using C# with MySQL Database how to do it?
• Can I send a parameter by reference in using waitcallback?
• combox.text
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Disable the (red x) button on form
• Effects of assembly signing on code deve
• Thread impersonation in Win 2k, via c#
• Non file based configuration settings
• How do I enable Ctrl + V and Ctrl + C fo
• need help about user control
• How to open folder from C# code??
• Error Connecting to Database
• Check if panel is clicked
• Serialization
• sql connection
• Problem with HtmlEncode
• Communiacting with DLL in c#
• How to convert an image to string..
• how to write into XML

Hot Articles

• Automatic logging in to websites via Web
• Please help with error: "Referenced
• cannot select the row
• Problems with the TextBox :/
• contents of release mode
• XML
• Trackpad Location Peek
• Random Division
• How to check for tables in dataset
• Visual Studio 2005 Screensaver
• How to use RTC API 1.3 to write sip-base
• Data set part 2
• Importing Messages from Outlook Express
• install application in other PC
• Previewing images (64*64) control....

Recommend Articles

• c# Insert Text into Textbox
• sql question
• Placing button on a statusstrip control
• Refresh System Tray
• MethodNotFound when invoked from a forms
• "disable" browser back
• window service unable to launch process
• System volume (sound) and cpu usage
• Help with this code. I really dont under
• Error in FTPing - reply 550 - The proces
• Export PowerPoint using viewer with C#?
• First C# Project - Can I attach an Image
• Populate listbox in window1 from window2
• Updating DB Record (Newbie Question)
• Populating combobox using loop