How do you parse the caret position in a text box, then use that for setting the index in a listbox, all in VB.NET
A:
I'm not sure about a richtextbox, but in a normal textbox you look at the SelectionStart
property.
Update a quick check in Visual Studio confirms the property at least exists for RichTextBox. You should really start there.
Joel Coehoorn
2010-02-13 22:14:42
It does but how would you parse that data?
muckdog12
2010-02-14 01:32:59
There's nothing to parse - it's just an integer property that tells you where the caret is. Read the docs http://msdn.microsoft.com/en-us/library/system.windows.forms.richtextbox.aspx http://msdn.microsoft.com/en-us/library/system.windows.forms.textboxbase.selectionstart.aspx - that's always a good idea:
Joel Coehoorn
2010-02-14 03:28:41