Results 1 to 2 of 2

Thread: [RESOLVED] Clipboard

  1. #1
    Dorothy
    Guest

    Resolved [RESOLVED] Clipboard

    How does one use the ClipBoard object.

    In VB6 we have getText and setText.

    Here how should GetObject and setObject be used?
    Help me with an eg?

  2. #2
    New Member
    Join Date
    Jun 2002
    Posts
    8

    Very easy !!

    Place data on clipboard:

    If textBox1.SelectedText <> "" Then
    Clipboard.SetDataObject(textBox1.SelectedText, True)
    End If

    Get data from clipboard:

    MsgBox(Clipboard.GetDataObject.GetData _
    ("System.String").ToString())


    You need to add data type validation !!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width