Copy listBox? (C#)

nuclearrap

Power Member
Joined
Apr 19, 2011
Messages
586
Reaction score
1,905
:chicken_w

Hey..

how can I copy listBox1 to clipboard clicking button1. what code should I write in button1 click event
 
listbox selected text

and add this code

Code:
Clipboard.SetText(String.Join(Environment.NewLine, ListBox1.SelectedItems.Cast(Of String).ToArray))
 
man, this code doesn't work
 
Back
Top