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:
However, that won't work. Any ideas on how I can fix that?
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)))