Click to See Complete Forum and Search --> : [RESOLVED] Ownerdrawn Control with Caret Cursor


JonnyPoet
May 19th, 2008, 09:26 AM
Hi friends !

I have to design a ownerdrawn CustomControl. Basically no problem for the drawing algo. But How can I get the Caret shown there at a specific place where I want to have him. In the C++ times I would simple have derived from editbox and painted it myself, But how this is done in C# Looking at the TextBox events there are no Paint events available.

dglienna
May 19th, 2008, 10:44 AM
You could use the API:

http://groups.google.com/group/microsoft.public.dotnet.framework.windowsforms.controls/browse_thread/thread/62969e567c83b155/d374fa8d494c2871

JonnyPoet
May 19th, 2008, 12:48 PM
You could use the API:

http://groups.google.com/group/microsoft.public.dotnet.framework.windowsforms.controls/browse_thread/thread/62969e567c83b155/d374fa8d494c2871

Thx dglienna !
Have done a short look into that. Seems to be a great reference. I'll have to do a try on this. :wave:
-----
have read fully and tried now. works like a charme. You saved me lots of hours and also my day :D