Re: How to clear the Clipboard using VB?
The following sample of the coding would be useful for clearing the clipboard in VB :
Code:
Option Explicit
Private Declare Function OpenClipboard Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function CloseClipboard Lib "user32" () As Long
Private Declare Function EmptyClipboard Lib "user32" () As Long
Public Sub ViderPP ()
'Open the clipboard
OpenClipboard 0 &
'We empty the clipboard
EmptyClipboard
'Close the clipboard
CloseClipboard
End Sub
I do to dead flowers what people at morgues do to dead people. Suck all the moisture out, dip them in plastic, paint them up pretty and put them in a nice frame.
Bookmarks