Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

Pasting from clipboard into multiple textboxes

As the thread subject says. I'm looking to paste a string of characters and numbers into multiple textboxes and get rid of any dashes (-) in the process of pasting into said textboxes. I'm not sure what to even start with in the code.

anyways an example is like this

you copy the string below
DSGF-234S-DR3f-S3R5

and you paste it into multiple textboxes (with the underlines representing the actual textboxes)

DSGF - 23GF - DR3F - S3R5

Any and all help is much appreciated!
You could paste the string individually?
string[] text = Clipboard.GetText().Split('-');
textBox1.Text = text[0];
textBox2.Text = text[1];
...
[Image: bitcoin.png] Be Nice For Once 15hVUVz7xA4kazHdk2BuErENGCskVwjYXP
(Jul 28, 2022 02:29 AM)HFDone Wrote:  string[] text = Clipboard.GetText().Split('-');
textBox1.Text = text[0];
textBox2.Text = text[1];
...

awesome! This works! Thank you much!


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by john ronaldsadJul 20, 2022 06:49 PM 4 237 Jul 20, 2022 06:49 PM
Last Post: john ronaldsad
[C#] by macpromoMay 31, 2020 04:45 PM 6 268 May 31, 2020 04:45 PM
Last Post: He B TeMy
[Shell] by Emre_Aug 21, 2019 02:08 PM 0 120 Aug 21, 2019 02:08 PM
Last Post: Emre_