Creating a File Explorer project in vb.net

R

Ruben

Hi to everyone!

I'm trying to simulate a windows explorer un vb.net (using a ListView
control) and like the windows explorer application I would like to add
the Up button to my application, so if I'm in one folder and I click
Up, the application should go to one level up that means the previous
folder visited. Does anyone knows if there is any method like FolderUp
or something like this? or I want to do it manually?

Thank you in advance.
 
K

kimiraikkonen

Hi to everyone!

I'm trying to simulate a windows explorer un vb.net (using a ListView
control) and like the windows explorer application I would like to add
the Up button to my application, so if I'm in one folder and I click
Up, the application should go to one level up that means the previous
folder visited. Does anyone knows if there is any method like FolderUp
or something like this? or I want to do it manually?

Thank you in advance.

Hi Ruben,
The previous directory path of current directory can be reached using:

System.IO.Path.GetDirectoryName(Environment.CurrentDirectory))

Hope this helps,

Thanks,

Onur Güzel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top