clipboard.clear...

  • Thread starter Thread starter Gary
  • Start date Start date
G

Gary

hi, how does one clear the clipboard in vb.net? i used clipboard.clear in
vb6.

thanks,

Gary
 
* "Gary said:
hi, how does one clear the clipboard in vb.net? i used clipboard.clear in
vb6.

Untested: You can try to use 'Clipboard.SetDataObject' with an empty object.
 
Hi Gary,

Imports System.Windows.Forms
Module Module1
Sub Main()
Dim o As New Object
Clipboard.SetDataObject(o)
End Sub
End Module

I has tested the code and it will work for me.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top