how do i copy, paste and cut selected text from/in a
textbox? I mean when it's running... so I can cut, paste
and copy stuff to/from the clipboard like a texteditor.
Printable View
how do i copy, paste and cut selected text from/in a
textbox? I mean when it's running... so I can cut, paste
and copy stuff to/from the clipboard like a texteditor.
Look at this thread http://forums.vb-world.net/showthrea...threadid=39797 for a few ideas.
I had the exact same idea! Thanx bro'!
I get a runtime error:
object required....
it does not recognize the clipboard!! Maybe my vb version is
too old?
hmm.. think it's should work, post the code pls.
... and what VB version are you using?
Have you tried Text1.seltext=clipboard.GetText, and Text1.seltext=clipboard.SetText ??
I use the exact code as shown in the link above.
And I'm using Visual Basic 4.0 SE
Maybe a lil' bit too old?
To save data to the clipboard:
Clipboard.SetText MyData
(Clipboard.SetText Text1.SelText)
To retrieve it:
RetrievedData = Clipboard.GetText()
(Text1.text = Clipboard.GetText() )
What line is highlighted?