How do I get the current cursor position in a TextBox

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hello!

I want to drag a file into a TextBox by using DragDrop and this works fine.
I also want to drop this file where I have the cursor positioned in the
TextBox.

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

//Tony


.



Relevant Pages

  • Changing a key (OnKeyPress) and cancelling a TextChanged while retaining the cursor position
    ... I would like to change a ',' character into a '.' ... I would also like to cancel certain key presses, ... textbox from whatever position it was previously in. ... before the change to save the cursor position, ...
    (microsoft.public.dotnet.framework.compactframework)
  • TextBox: get text at/around mouse position
    ... In a TextBox, I'm using a MouseMove event to track the cursor position. ... I want to get able to tell what text the current cursor position is at so I ... This effectively sets the SelectionStart ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How to get row # in textbox control
    ... EndText contains the text from cursor position at ... MyText is what is wanted to insert at the ... of the text is the top line of textbox. ...
    (microsoft.public.vb.winapi)
  • Re: cursor position in textbox
    ... (no private e-mails, please) ... i have 9 picture box having title from 0 ... Say for example, if u click "1" picture, the textbox text will be ... How to change the cursor position in textbox.. ...
    (microsoft.public.access.formscoding)
  • set cursor position to the last character of textbox
    ... I create a textbox from Drawing toolbar. ... cursor position to the last character. ...
    (microsoft.public.excel)