Welcome to Dream.In.Code
Getting C# Help is Easy!

Join 136,169 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 1,890 people online right now. Registration is fast and FREE... Join Now!




how do i use the browsing folder window

 
Reply to this topicStart new topic

how do i use the browsing folder window

bacharra
21 Dec, 2007 - 11:04 AM
Post #1

New D.I.C Head
*

Joined: 20 Dec, 2007
Posts: 1


My Contributions
how do i take the name of the folder that i chose from folderBrowserDialog into a virable?
User is offlineProfile CardPM
+Quote Post

PsychoCoder
RE: How Do I Use The Browsing Folder Window
21 Dec, 2007 - 11:15 AM
Post #2

using DIC.Core;
Group Icon

Joined: 26 Jul, 2007
Posts: 8,983



Thanked: 125 times
Dream Kudos: 8625
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions
To do that, do something along these lines

CODE

string fileName;
fileName = openFileDialog1.FileName;


Hope that helps smile.gif
User is offlineProfile CardPM
+Quote Post

phatSolutions
RE: How Do I Use The Browsing Folder Window
21 Dec, 2007 - 12:49 PM
Post #3

New D.I.C Head
*

Joined: 21 Dec, 2007
Posts: 12

QUOTE(PsychoCoder @ 21 Dec, 2007 - 12:15 PM) *

To do that, do something along these lines

CODE

string fileName;
fileName = openFileDialog1.FileName;


Hope that helps smile.gif


That actually gets the FileName if using the OpenFileDialog

to get the selected folder when using folderBrowserDialog use

CODE
folderBrowserDialog1.SelectedPath

User is offlineProfile CardPM
+Quote Post

PsychoCoder
RE: How Do I Use The Browsing Folder Window
22 Dec, 2007 - 05:33 AM
Post #4

using DIC.Core;
Group Icon

Joined: 26 Jul, 2007
Posts: 8,983



Thanked: 125 times
Dream Kudos: 8625
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions
Whoops! I didnt even notice he asked for folder not file name, thanks smile.gif blush.gif
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 12:25AM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month