Multi line text to one line text

I want to do that, when I paste any sentence on my textbox than multi line text convert to single line text

Example: The following will help you make fewer mistakes when you speak English.

It is very important to be able to use the articles properly, both when writing and speaking.

After convert: The following will help you make fewer mistakes when you speak English.It is very important to be able to use the articles properly, both when writing and speaking.

Disable ‘multiline’ from textbox designer properties.
09-06_51_48

3 Likes

I know but when I copied text from where multiple lines are present, than after paste text on text box, multiple line are not convert in single line

you might want to use the textbox extension and its AfterTextChanged event to remove all new line characters \n inside your text

Taifun

2 Likes

how to remove all new line characters
i try throw “replace all text” Block but problem no solved.
Please Send Block Example

yes exactly
you might want to provide a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.
Taifun

The TextBox component in Kodular has already this option.

image

2 Likes

1 Like

thanks you
Finely i solved this problem

2 Likes

you marked your screenshot as solution, which actually does not work…
and yes, \n would be correct as mentioned earlier
Taifun

yes, after post screenshot, i see this “\n” error and i slove this
thanks for helping me

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.