Hi, some comments: 1. you can add a single MenuItem Click handler for all four mnuFileRecent MenuItems. you can find its MenuItem from its sender argument, and the filename from its text. I see no need for Addressof. 2. you don't need PerformClick, it simulates clicking something. What I am missing is the code that sets the texts for mnuFileRecent1-4 3. You don't need tempArray: first check whether the new file is already in RecentFiles; if not, shift them down (from hi to lo index) before you add F at 0. if it is there, shift them down starting with overwriting the old F, upwards, then put F at 0. 4. You may want to improve the handling when fewer than 4 recent files are known (initially or after clearing the list, if that is offered). suggestion: set up a convention to store/load the situation to/from file; disable menu items that are not functional yet. 5. You might consider using Application.UserAppDataPath rather than your AppPath(), since the latter may be read-only, and the former automatically exists per user. :)
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google