Eleventeen Posted June 10, 2003 Posted June 10, 2003 How do you get the position of the edit cursor in the textbox? What I need is to tell if the cursor is at the end of the text or the beginning. Thanks! Quote
Leaders dynamic_sysop Posted June 10, 2003 Leaders Posted June 10, 2003 Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click MsgBox(TextBox1.SelectionStart) End Sub returns the current value , eg: if your textbox contains "test" and the cursor is flashing in between the "te" and "st" it would return 2 Quote
Eleventeen Posted June 10, 2003 Author Posted June 10, 2003 Thanks! Exactly what I was looking for. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.