Copy text from a textbox

1

HowcanImakethe"Copy" button copy all text from the textbox?

    
asked by anonymous 04.10.2015 / 01:02

2 answers

3

So I understand it's to copy to clipboard, so it's like this in VB:

Clipboard.SetText(Text1.Text)

where Text1.text is your text

    
04.10.2015 / 01:15
-2

Private Sub Command1_Click ()
txt.SelStart = 0
txt.SelLength = Len (txt.Text)
txt.SetFocus
Clipboard.Clear
Clipboard.SetText Screen.ActiveControl.SelText
End Sub

    
14.10.2015 / 15:23