-
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.....
-
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.
-
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 :p...)