|
-
Sep 30th, 2000, 12:59 PM
#1
Thread Starter
Lively Member
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!!
-
Sep 30th, 2000, 01:45 PM
#2
Fanatic Member
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
-
Sep 30th, 2000, 03:13 PM
#3
_______
<?>
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
-
Oct 1st, 2000, 06:40 AM
#4
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|