+ 1

Can anyone refer me to a code so I can learn to use Clipboard class on C# please?

I need to paste on a checklistBox and I have no idea how to to that

27th Aug 2018, 10:34 AM
Andrew Clark
Andrew Clark - avatar
10 Respuestas
+ 3
Okay, create a text box where the user will type the item, then a button that will do the next: checkedListBox1.Items.Insert(lastPlace + 1, new ListBoxItem("text", "value"));
27th Aug 2018, 11:24 AM
Eldar Bakerman
+ 1
Google is not really helpful when it comes about working on checkListBox y'know
27th Aug 2018, 11:13 AM
Andrew Clark
Andrew Clark - avatar
+ 1
Oh, you want to duplicate a checklist box?
27th Aug 2018, 11:14 AM
Eldar Bakerman
+ 1
I need to paste numbers from clipboard like this 12344612 17273721 17273717 ordered on the checklistBox
27th Aug 2018, 11:18 AM
Andrew Clark
Andrew Clark - avatar
+ 1
So you want the user to be able to paste items into the checklist?
27th Aug 2018, 11:19 AM
Eldar Bakerman
+ 1
that's exactly what I'm talking about
27th Aug 2018, 11:20 AM
Andrew Clark
Andrew Clark - avatar
+ 1
okay I'll try it right now!
27th Aug 2018, 11:27 AM
Andrew Clark
Andrew Clark - avatar
0
Simply check out on Google - C# Clipboard
27th Aug 2018, 11:09 AM
Eldar Bakerman
0
Hey! If it did help mark my answer as best, else tell me what's wrong
27th Aug 2018, 12:38 PM
Eldar Bakerman
0
Clipboard.GetText(); wil give you the tekst on the clipboard. Events like KeyDown and MouseDown will tell you when the user approaches the checkedlistbox.
27th Aug 2018, 9:08 PM
sneeze
sneeze - avatar