How would you go about making a feature like that on access which shows you the last 5 files you opened?? I presume you would have to use a text file or something!?!?
Use a control array of Recent File submenus, and yes a text file. Set the submenu's .Visible property based on wheather there is a recent file cooresponding to that menu item (if there are only 2 recent files and you have 4 array elements, set the last 2 to .Visible = False)
Each menu item has an "Index" textbox. Type the element number in there and make sure the names are the same, just like any other control array.
Sorry to confuse you, I was pointing you toward a menu item under File...Recent Files...File1.txt. To make it like Access, just write the name of each file to disk, and load the items into a listbox on startup. You can use the literal string in the listbox for your OpenFile argument (just use the lstMyListBox.List(lstMyListBox.ListIndex) to get the actual string for the selected recent file).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.