Back and Forward Button

annir

Active member
Joined
Sep 1, 2008
Messages
32
Programming Experience
Beginner
Hi Guys,

Does any one have an idea how can I create a back and forward button. For example I click folder in Dirlistbox then if I will click the back button it will back to the previous. Just like the button in the navigation toolbar.

I try this code but it only perform the last event that I triggered.


Dim s As String = DirListBox1.SelectedItem.ToString
Dim i As Integer = DirListBox1.Path.IndexOf(DirListBox1.SelectedItem.ToString)
If (i > 0 And i < DirListBox1.Path.Length) Then
DirListBox1.Path = DirListBox1.Path.Substring(0, i - 1)
DirListBox1.SelectedItem = s
End If

Do you have any idea? in back and forward button at can I apply in Dirlistbox? How can I record the events that I trigged from the dirlistbox simultaneously in Filelistbox?

Thanks!

annir
 
Back
Top