I found this:
http://stackoverflow.com/questions/9...t-control-text.
It's nice, but one thing is missing: text selection. I added it, but one more thing is wrong (in original code, my modification just modifing font and brush colors): when select text by mouse, custom paint method is not used. Could you help, please?