Roddeck
Roddeck

Reputation: 45

Cannot paste text to TextBox

I have problem with pasting data to textBox. I want to parse entered text to replace all newLines, but when I try to paste some text, let's say:

1234
5678
9000

I only get first line. Is there any easy way or I have to somehow overwrite ctrl + v shortcut and parse what im trying to input?

Upvotes: 0

Views: 1395

Answers (1)

Ad Infinitum
Ad Infinitum

Reputation: 3696

TextBox accepts one line. If you want to copy all the texts, mentioned in your question, you should enable multiline in TextBox.

Or alternatively, the multiline version of TextBox is RichTextBox (Kudos to @EpicKip).

and I think this answer helps you handle it

Upvotes: 1

Related Questions