>>>>>Hi Greg,
>>>>>
>>>>>Can you give me a quick idea of what have you used to determine current position? Just wondering now.
>>>>
>>>>In the AddOnly.vcx (Keypress method), I compare the original text to the modified text, if the SelStart is less then the length of the original test, ignore the keystroke. (Sorry for the lack of comments in this method.)
>>>
>>>I didn't look into your code at all, sorry. I just wanted to get an idea of how this is done. My first thought was to get the cursor position (either using CursorPos or something similar), then instantiate a textbox at this place, etc.
>>>
>>>Obviously you did it completely different. May be you can post some of the code here for lazy lurkers like me.
>>>
>>>Thanks again.
>>
>>In general, in the begin I save the current Value of the editbox. Then as the user types, I trap the keystroke, and using the SelStart property, I determine if they are type in the proper portion of the editbox. If they are not, the keystroke ignore otherwise it is place at the current cursor position.
>
>We're talking about different things here. Check the thread's title, please.
I'm sorry, I was get my threads confused.
As to how the Editable Listbox works, I don't recall. I did not write it and really never took to time in see how it worked. Sorry.
Greg Reichert