a button that will copy from a text box.. how can i do it?
Printable View
a button that will copy from a text box.. how can i do it?
:)VB Code:
Clipboard.SetText Text1.Text
will copy the contents of text1 to the clipboard.VB Code:
Private Sub Command1_Click() Clipboard.Clear Clipboard.SetText Text1.Text End Sub
arg too slow!
Do you need the Clear?
I have found that if the clipboard already has text in it VB wont do anything...Quote:
Originally posted by filburt1
Do you need the Clear?
You are right, you need the clear otherwise .settext does nothing.