Anybody already worked this out?<br>
<br>
I have a list of items in sequence. When keying into a text box I need to insert the first item from that list which matches what has been keyed so far.<br>
<br>
This isn't very efficient and could take a while to smooth out the rough edges: Load the items in an array and scan the array (in the text box change event) looking for a match between the left-most characters in each element and the contents of the text box. Any match should AddItem the Text to the List and store its position. Any subsequent failure to match should remove it from the list.<br>
<br>
I'll cry if Mike Lacey doesn't whip out a simple way to do this using the API!
Alt225,<br>
<br>
Thanks for your ideas. We have actually done some similar coding with a custom control but I'm looking for someone who has already fought the battles of unexpected event firings, etc. for the text box control. In other words, I'm looking to shortcut the development process.<br>
<br>
John Kisner<br>
<br>
PS. I'll trade some of our neat stuff...
"I'll cry if Mike Lacey doesn't whip out a simple way to do this using the API"<br>
<br>
Well - I have suggestion - but it's not Win32API based so ... Get your hanky out!<br>
<br>
We have a custom OCX which does exactly this. It's taken (almost verbatim) from the book "Instant ActiveX Controls".<br>
<br>
I would give you the ISBM number for this book - but it's at home.... I'll post it this evening.<br>
<br>
I'm happy to let anyone interested have the OCX and source. We did have to make some modifications to the control - minor bug fixes and such - so our version might be useful.<br>
<br>
I'm using the word "We" here in the sense that I got someone else to do it....<br>
<br>
JohnK. With your classes experience - I wouldn't mind you having a look at it anyway.<br>
<br>
Regards<br>
<br>
Mike<br>
<p>Mike Lacey<br><a href=mailto:Mike_Lacey@Cargill.Com>Mike_Lacey@Cargill.Com</a><br><a href=http://
Mike,<br>
<br>
Please send the OCX & source along. We'll try it our right away & reply. Also would like the ISBN for "Instand ActiveX Controls.<br>
<br>
Thans, John
Thanks for the responses.<br>
<br>
We have resolved our intellisense issue (we call it autofill) by developing our own code. Since our use is specialized I doubt that code samples would be of much general help (we provide for search parameters to also be entered in our "Find" mode).<br>
<br>
In order to protect performace against excessive database hits with each keystroke we had planned to use the In Memory Database feature of Win2000. Now that it has been dropped by MS we load an array at form load time.<br>
<br>
JohnK
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.