2 Attachment(s)
I need to get change events for textbox created by API
Hello, I share with you this project of user control, where I have problems capturing the change event in a textbox initialized by API in any hwnd window (using a picturebox), I need this to quickly get out of the compatibility problems of characters such as Japanese, Korean, arabic, etc... and it works quite well without using "richtextbox".
Attachment 192331
Currently what I want is to obtain the change event simply following the same implementation by API, I am obtaining the return of the event through a timer that compares changes, but I feel that it is not the most optimal.
I leave you the files, thanks for your help!!.
Attachment 192332
Thank you so much!
Re: I need to get change events for textbox created by API
You need to subclass the parent window, and catch the WM_COMMAND message, then look for EM_CHANGE notification (HIWORD(wParam)).
Re: I need to get change events for textbox created by API
You can take a look at my Unicode RichTextBox project. I also implemented it in a PictureBox and you can see how to subclass it and intercept the "EN_CHANGE" notification like Dry Bone said.