Ok,You need to have initialize a new var named OldLength..As you will use it later..Then create an if then statement : if OldLength > Textbox1.length than add 1 to the length var..Else subtract on of the length var and do the same when you want to add 5 ( if line break detected )..
Last important thing..At the end of the OnTextChanged event : set the OldLength var to TextBox1.length..So it get updated every time..That’s it ![]()
1 Like