Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Visual C# Question: Folder Dialog Displays
Index -> General Programming
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
rar




PostPosted: Tue Jun 29, 2010 12:11 pm   Post subject: Visual C# Question: Folder Dialog Displays

So I'm making a program where I will need to have the user browse for and select a folder. A normal browse dialog box will pop up and the user will select a folder from there. Then, the folder will be displayed in a dialog box on the form. How do I make this happen in Visual C#? Any hints, directions? I've never done anything like this before, it's all a learning experience.
Sponsor
Sponsor
Sponsor
sponsor
TerranceN




PostPosted: Tue Jun 29, 2010 1:09 pm   Post subject: RE:Visual C# Question: Folder Dialog Displays

First create a label, a button and a FolderBrowserDialog. Double click the button to access its button_click code, then add these two lines:

code:
folderBrowserDialog1.ShowDialog();
label1.Text = folderBrowserDialog1.SelectedPath;


Hope that helps.
rar




PostPosted: Tue Jun 29, 2010 2:01 pm   Post subject: RE:Visual C# Question: Folder Dialog Displays

hey that's great! Thanks.
Display posts from previous:   
   Index -> General Programming
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: