Results 1 to 3 of 3

Thread: CLIPBOARD

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    chicago (hope)
    Posts
    146

    Unhappy

    Code:
    Private Sub Command1_Click()
    Clipboard.Clear
    Clipboard.SetText Text2.Text, vbCFRTF
    End Sub
    why does this not work ?????

    text2 is a richtextbox
    with font "verdana" and the caracters have a different size.

    i want to copy the whole text (with font size, bold, etc...) to the clipboard and then i copy it to another program (like word or outlook...)

    but the clipboard is always empty.....



  2. #2
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    Try Using Text2.TextRTF instead, also the VB Clipboard is a bit buggy, Try compiling a few small test projects with the clipbaord see what you can get to work, I wrote a program that altered some text in the clipboard, so I could copy

    Dim intProperty1 as Integer

    and it would change it to a property let/get statement for a class module.
    It only worked If I copied the text to the clipboard, pasted it into a notpad, ran the program pasted to notepad again and then copied that text to the clipboard, then I could copy text into VB.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    chicago (hope)
    Posts
    146

    Talking yeah!

    thanx!

    now it worx correctly (adverb or adjective??? what do i have to use??? i'm not so good @ english... in only a lazy teenager ...)

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