Home » System & API » How to clear Documents List (under the Start button)
How to clear Documents List (under the Start button)
Posted on January 4, 2009
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 'System & API - How to clear Documents List (under the Start button) Option Explicit Private Declare Sub SHAddToRecentDocs Lib "shell32.dll" (ByVal uFlags As Long, ByVal PV As String) Sub Main() Dim MyResult As Boolean MyResult = ClearDocumentsMenu() If MyResult = True Then MsgBox "Documents removed." Else MsgBox "Documents not removed." End If End Sub Public Function ClearDocumentsMenu() As Boolean 'Returns true if successful, false otherwise SHAddToRecentDocs 2, vbNullString ClearDocumentsMenu = Err.LastDllError = 0 End Function |
Related posts:
- How to add a Document name to the Recent Documents list (under Start Button)
- How to Clear Windows Recent Documents List from your Visual Basic Application
- How to add a given file to Windows Recent Documents List
- How to clear Start Menu -> Run MRU list
- How to Show/Hide the Start Button from the task bar
- How to add text to Microsoft Word documents from VB
- _-Start Owner-_ Change the Text Of Your Start Button!
- How to List Network Computers
- How to Open Start Menu using VB Code
- How to Start another program using Shell and wait until it finishes.
Enjoy this article?
Filed under: System & API
Leave a comment
Sponsors
Link Back to us
Donations
If you are benefited from this site, please donate a small contribution to us. It will help to maintain this site better.