C# winforms: move text from one textbox to another -


i have winform application 2 textboxes. textboxes multilined , has 5 rows.

when user enters more 5 lines of text in first textbox want text continue in second textbox. , if he/she deletes text first textbox want text move second first one...

i have tried solve in code checking how many rows first textbox has , moved text between 2 textboxes. doesnt work wonder if got better solution??

you accomplish registering textchanged events on textbox controls. in event handler, manually inspect text property , set focus appropriate control. however, describing sounds may lead inconsistent user experience.

from ux standpoint suggest changing approach. first of need split text in ui, or split afterward in business layer? if need split in ui, have single textbox allows user enter full text, , below have 2 read-only textbox's display 2 split segments type (you use textchanged event logic type).

i hope helps.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -