The Clipboard object in Visual Basic 6.0 has no direct equivalent in
Visual Basic .NET. Although there is no direct mapping, the
functionality of the Clipboard object can be duplicated using the
System.Windows.Forms.Clipboard namespace.
During upgrade, any code that references the Clipboard object is not
upgraded and must be rewritten. The following example shows how to
modify code that uses the Clipboard object:
If System.Windows.Forms.Clipboard.GetDataObject.GetDataPresent( _
System.Windows.Forms.DataFormats.Text) Then
Text1.Text = System.Windows.Forms.Clipboard.GetDataObject.GetData( _
System.Windows.Forms.DataFormats.Text)
End If
Thank you for your reply, but all that does it get data from the clipboard,
but it doesn't actually delete (destroy all data on the clipboard) in VB.NET
2003
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.