Results 1 to 4 of 4

Thread: Regarding ClipBoard

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Location
    Singapore
    Posts
    78

    Cool

    I'm writing a sort of a parsing program whereby there's 2 text boxes. The manipulated string will be displayed in the 2nd text box. And by pressing a button, the message will be paste to the clipboard. Coding is as below:

    Text2.SelStart = 0
    Text2.SelLength = Len(Text2.Text) - 1

    ClipBoard.SetText Text2.SelText

    Ok I manage to get it to be copied to the clipboard and I'm able to paste the text in notepad. But I'm unable to do so in WinWord! (Pretty strange)

    Does anyone know the reason why and what I can do to overcome this?

    Thanks for any help and solutions!!

  2. #2
    Fanatic Member RealisticGraphics's Avatar
    Join Date
    Jul 1999
    Location
    Arkansas
    Posts
    655
    I have had the same basic problem. I do not have a fix for it but what is happening on my end is when I'm usinging a rich text box and a plain text box. They seem to have their own seperate clipboards against windows. If you find out what has happend, please let me know too. Thanks
    www.RealisticGraphics.net

    Running VS.Net Enterprise & VB 6

    Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML

    MSN Messenger: kmsheff

  3. #3
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    Try this..sometimes the clipboard for MSWord holds the
    prior stuff and not the latest.
    Code:
    Option Explicit
    
    Private Sub Command1_Click()
    
        Dim x
        x = "Does it really matter if anything happens here?"
        
        Clipboard.Clear
        Clipboard.SetText x
    
    End Sub
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Location
    Singapore
    Posts
    78
    HeSaidJoe's method finally solve the problem.

    Thanks for all your help, guys!


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