I have a textbox that runs a bit of (sql) code whenever the user inserts a character in it, and then resets the focus back to it using sellength as part of the criteria.
The problem is that when the cursor is placed back in the textbox (and if there is a space afetr the last character) it is position after the last character and ignores any spaces.
I guess what I'm trying to ask is is there any way to make SelLength include spaces?
Thanks
Code:
txtSearch.SetFocus
txtSearch.SelStart = txtSearch.SelLength + 1
The problem is that when the cursor is placed back in the textbox (and if there is a space afetr the last character) it is position after the last character and ignores any spaces.
I guess what I'm trying to ask is is there any way to make SelLength include spaces?
Thanks