|
-
Oct 14th, 2001, 11:24 AM
#1
Thread Starter
Addicted Member
Copy
a button that will copy from a text box.. how can i do it?
Gray FOX: "Only a fool, trusts his life to a Weapon!"
Bart Simpson: "Bart no like! Baaad medicene!"
www.sling.to/dementia-freaks <<<---Goto my site!
http://pub80.ezboard.com/bdementiafreaksforum <<<---Goto my forum!
Thats it!
-
Oct 14th, 2001, 11:24 AM
#2
Member
VB Code:
Clipboard.SetText Text1.Text
-
Oct 14th, 2001, 11:25 AM
#3
Addicted Member
Re: Copy
VB Code:
Private Sub Command1_Click()
Clipboard.Clear
Clipboard.SetText Text1.Text
End Sub
will copy the contents of text1 to the clipboard.
-
Oct 14th, 2001, 11:26 AM
#4
Addicted Member
-
Oct 14th, 2001, 11:28 AM
#5
Member
-
Oct 14th, 2001, 11:29 AM
#6
Addicted Member
Originally posted by filburt1
Do you need the Clear?
I have found that if the clipboard already has text in it VB wont do anything...
-
Oct 14th, 2001, 11:39 AM
#7
PowerPoster
You are right, you need the clear otherwise .settext does nothing.
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
|