Quote Originally Posted by Eduardo- View Post
I tested it and the standard textbox doesn't allow to undo the action after a selection is replaced by code, unlike the RichTextBox.
Maybe because the MS RichTextBox has Undo and Redo methods, do they decided that SelText triggers Undo.
Whereas standard TextBox has no duch methods there was no "need" that SelText triggers something.
Anyhow, my TextBoxW has just like RichTextBox Undo method, so it makes sense or does not harm when SelText triggers Undo. Or?