|
-
Nov 4th, 1999, 04:09 AM
#1
Thread Starter
Junior Member
Does anyone happen to know how a program can be written, so in an event procedure, text could be cut, copied or pasted? I really need the copy and paste ones. So, if u can get me all 3 of them i'd really appreciate that. thanks!
-
Nov 4th, 1999, 04:12 AM
#2
Fanatic Member
Do you need to do it for text only or for Pictures too?
------------------
Visual Basic Programmer
-----------------
PolComSoft
You will hear a lot about it.
-
Nov 4th, 1999, 04:13 AM
#3
Not sure I get exactyl what you want, but, you can send the Cut/Copy Paste commands from code using the SendKeys Method, eg.
SendKeys "^X", 1 'Cut
SendKeys "^C", 1 'Copy
SendKeys "^V", 1 'Paste
Plus you can add and remove things from the the Clipboard using the Clipboard Object, eg.
Clipboard.SetText "Some Text"
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]
-
Jan 24th, 2001, 10:21 AM
#4
Lively Member
The Clipboard has the following events :
Clipboard.Gettext => Reads Text from Clipboard
Clipboard.Settext "text" => Puts text on Clipboard
Clipboard.Settext var => Copy variable to clipboard
Clipboard.Settext Text1.text => Copy content of Textbox to clipboard
Clipboard.Clear => Empties the clipboard
Just paste this code under a button or something and Voilà...
Breaker
(VB 6.0 ENT SP3 WIN 2000 PROF)=> WORK
(VB 6.0 ENT SP3 WIN ME)=> HOME -> Upgrade to .NET is coming
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
|