menu list to list the file name which have opened.
How to write the code to let the menu show a list of file name which had been opened.(history which file had openned)
in addition, if click the name in that list.the file will open again.
Re: menu list to list the file name which have opened.
Originally Posted by Hack
You are talking about an MRU (Most Recently Used) List. Here is an example that I put together some time ago.
It is very basic, so feel free to soup it up.
Code:
Private Sub mnuFileMRU_Click(Index As Integer)
ShellExecute Me.hwnd, vbNullString, mnuFileMRU(Index).Caption, _
vbNullString, "C:\", SW_SHOWNORMAL
End Sub
what does the code above means? can somebody explain on it?
Re: menu list to list the file name which have opened.
It takes the menu caption, and executes it. That is how, with an MRU, you are able to redo something that you have recently done that was saved to your MRU List.