Caret?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • perspolis

    Caret?

    Hi all
    I want to change position of caret in my text box..how can I do that??



  • Lebesgue

    #2
    Re: Caret?

    void SetCaret(TextBo x tb, int caretPos)
    {
    tb.Select(caret Pos, 0);
    }

    "perspolis" <rezarms@hotmai l.com> wrote in message
    news:u7zii7nRFH A.3664@TK2MSFTN GP15.phx.gbl...[color=blue]
    > Hi all
    > I want to change position of caret in my text box..how can I do that??
    >
    >
    >[/color]


    Comment

    • Steven Lewis

      #3
      Re: Caret?

      Or by using

      tb.SelectionSta rt = caretPos; // Using the same function Lebesgue wrote

      Regards

      Steven Lewis

      "Lebesgue" <nospam@spam.jp > escribió en el mensaje
      news:u81upt2RFH A.3716@TK2MSFTN GP14.phx.gbl...[color=blue]
      > void SetCaret(TextBo x tb, int caretPos)
      > {
      > tb.Select(caret Pos, 0);
      > }
      >
      > "perspolis" <rezarms@hotmai l.com> wrote in message
      > news:u7zii7nRFH A.3664@TK2MSFTN GP15.phx.gbl...[color=green]
      >> Hi all
      >> I want to change position of caret in my text box..how can I do that??
      >>
      >>
      >>[/color]
      >
      >[/color]


      Comment

      Working...