Actually, that's exactly my situation: porting a Control derived class over
to MWF.  Currently  Win32 interop is used to accomplish this and I was
hoping for a platform independent way (without duplicating the code already
available).

Dave

On 3/9/07, Rafael Teixeira <[EMAIL PROTECTED]> wrote:

AFAIK, it depends on the control you are using. In Textbox, I think
you have properties like SelectionStart and SelectionCount that
control the selection and the caret (when SelectionCount == 0).

Unless you are trying to write a custom control, you normally doesn't
manipulate the caret directly. I would look in the TextBox control
sources to have the gist of it, if I where you

Good hunting,

On 3/9/07, David Joyner <[EMAIL PROTECTED]> wrote:
> I have a situation where I would like to control the caret.  I noticed
that
> in the XPlatxxx classes there are methods to handle this but all are
> internal.
>
> Is there a recommended way for applications to show, hide, and position
the
> caret?
>
> Thanks
>
> _______________________________________________
> Mono-winforms-list maillist  -
> [email protected]
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>
>


--
Rafael "Monoman" Teixeira
---------------------------------------
"The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man." George Bernard Shaw

_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Reply via email to