I dont know if i am going about this the right way to start with but regardless, i am finding trouble in trying to find the exact location of the cursor in the textbox
basically in a lot of ways, Im trying to emulate how things work in the vb.net environment as they work the same with the robotic software. but i am trying to use a listbox that will appear after someone enters the text ".". i know i dont want to use the cursor position because it comes up incorrect though.
Code:
Private Function showlvars()
Dim vartype As String
Select Case SB_Lang.Text
Case "KUKA"
vartype = KUKALanguage.vartype(RTF.Currentword)
Select Case vartype
Case "POSITION"
lvars.Items.Clear()
lvars.Items.Add("X")
lvars.Items.Add("Y")
lvars.Items.Add("Z")
lvars.Items.Add("A")
lvars.Items.Add("B")
lvars.Items.Add("C")
lvars.Items.Add("S")
lvars.Items.Add("T")
End Select
End Select
lvars.Location = RTF.Cursor.Position
lvars.Focus()
lvars.Show()
End Function
basically in a lot of ways, Im trying to emulate how things work in the vb.net environment as they work the same with the robotic software. but i am trying to use a listbox that will appear after someone enters the text ".". i know i dont want to use the cursor position because it comes up incorrect though.