Re: How do I get the current cursor position in a TextBox

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hello!

Now I have to mark at least one character in the TextBox.
This works but I have to select a place in the TextBox.

I just wonder is it possible to get the position of the cursor without
having to select
a position in the TextBox.

//Tony

"www.ghoz.net |" <Mahmoud Ghoz> skrev i meddelandet
news:3c7029cc18a268cb9099e9839f40@xxxxxxxxxxxxxxxxxxxxxxx
I guess you mean caret. you should find property called SelectionStart

Mahmoud Ghoz
www.Ghoz.NET

Tony Johansson wrote:

So my question is how do I get the current cursor position in the
TextBox ?

Check out .SelectionStart





.



Relevant Pages

  • Re: How to avoid double entries inside a text box?
    ... I need also to append characters when the textbox is not ... Form_KeyDown event plus respond to Backspace, ... I have not double but triple repeat of the same character! ... Private Sub Form_KeyDown ...
    (microsoft.public.vb.general.discussion)
  • Re: How to avoid double entries inside a text box?
    ... It should allow all the normal operations textbox has when it is in focus ... I have not double but triple repeat of the same character! ... Then the same keystroke that your Form's key event has just ... the insertion point at the beginning!). ...
    (microsoft.public.vb.general.discussion)
  • Re: help: wrapping raw text in a text "border"
    ... you will need to add one more TextBox to your form.. ... the border characterand the hidden TextBox. ... border character is an asterisk, this would be your calling line... ... Dim SavedFontSize As Long ...
    (microsoft.public.vb.general.discussion)
  • Re: How to avoid double entries inside a text box?
    ... It should allow all the normal operations textbox has when it is in focus ... I have not double but triple repeat of the same character! ... Private Sub Form_KeyDown ... Then the same keystroke that your Form's key event has just dealt with will also be picked up by ...
    (microsoft.public.vb.general.discussion)
  • RE: Input Mask oddity - BUG?
    ... underscore where each character should go, together with a "/" between each ... clicks on the textbox and types the first character, ... >> I also have another form where the user can also edit a textbox with this ... I even tried using the Input Mask ...
    (microsoft.public.access.forms)