Hello,
In my code I use the following command:
me.richtextbox1 .text = me.richtextbox1 .text.trim
By doing this I lose al my text formatting, it seems that by setting the text property of a richtextbox you lose al the formatting.
Any idea how I can remove the leading and trailing spaces in a text without losing the rtf formatting?
Thanks in advance.
David
In my code I use the following command:
me.richtextbox1 .text = me.richtextbox1 .text.trim
By doing this I lose al my text formatting, it seems that by setting the text property of a richtextbox you lose al the formatting.
Any idea how I can remove the leading and trailing spaces in a text without losing the rtf formatting?
Thanks in advance.
David
Comment