remedy,
thanks for the reply. I was just about to reply to this post to say that I found the problem. Your reply talked about EM_CHARFROMPOS, but the problem was actually with EM_POSFROMCHAR. All the samples that I saw gave a constant of (WM_USER + 38) for EM_POSFROMCHAR, which works great with RichTextBox, but not with TextBox. I found out if you use &HD6 for EM_POSFROMCHAR, it works great with both RichTextBoxes and TextBoxes. I found this out by using one of my incident support items from Microsoft. Still waiting to here from them on what (WM_USER + 38) is used for.
Rob Rob