Re: Find The Text :-)

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"Ivar" <Ivar.ekstromer000@xxxxxxx> wrote in message news:JE6pi.956$ie3.577@xxxxxxxxxxxxxxxxxxxxxxx

P.S. You said you were having probs with "EM_POSFROMCHAR"
I could not get it to work either until I started to pass wParam and
lParam both ByVal. will that fix it for you?
Example
RetVal = SendMessage(Text1.hwnd, EM_POSFROMCHAR, ByVal StrPos, ByVal 0)

It's okay. I've got it sorted now. I had completely forgotten that the details of the arguments for the EM_POSFROMCHAR message, and also the way in which the results are returned, are completely different for a RichTextBox than they are for a standard TextBox. Thanks for the reminder.

Mike


.



Relevant Pages