Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I have a requirement in windows Form application
The Issue is as follows:
I have Put a OpenFileDialog,
and Opening it with Browse
Button Click.
To get a particular file from a Folder.
Let ABCD is a Folder.
and is In c Drive.
I clicked Browse button get to the ABCD folder and choosen a file.from that Folder.
and got the Path In textbox1,next i again clicked the browse button

here I want that when I click browse Button then
it should take me to that Folder(last opened) means ABCD folder.

Can this be Done.
Please Assist
Posted

ok I got the Solution
have just set the InitialDirectory path Blank
openFileDialog.InitialDirectory = ""
 
Share this answer
 
Set the InitialDirectory Property[^] of the OpenFileDialog[^] to the path in your text box.
 
Share this answer
 
Comments
Karwa_Vivek 25-Aug-12 9:35am    
yes have tried InitialDirectory Property.
But this is taking me to that path which i have provided in that property.
But the requrement is that I want to get in the last opened Path only.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900