Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42220

VS 2010 Move the caret in between quotation marks.

$
0
0
I have a TextBox control (A custom one, but that doesn't matter for now) and I append text to it everytime. I append
functions to it, For example, "test("");", is one function. I want to move the caret (The keyboard's cursor) in between the
quotation marks, so I made this out of logic:

Code:

frmMain.txtEdit.Selection.Start = frmMain.txtEdit.Text.Substring(0, frmMain.txtEdit.Text.LastIndexOf(ChrW(34)))
However, that won't work. Any ideas on how I can fix that?

Viewing all articles
Browse latest Browse all 42220

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>