Creating a File Explorer project in vb.net

  • Thread starter Thread starter Ruben
  • Start date Start date
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.
 
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
 
Back
Top