Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to add Intellisense to textbox

Status
Not open for further replies.

johnk

MIS
Jun 3, 1999
217
US
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...
 
Have'NT you heard? Shortcuts were abolished when Carter took office.
 
&quot;I'll cry if Mike Lacey doesn't whip out a simple way to do this using the API&quot;<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 &quot;Instant ActiveX Controls&quot;.<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 &quot;We&quot; 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:// Cargill's Corporate Web Site</a><br>
 
Mike,<br>
<br>
Please send the OCX & source along. We'll try it our right away & reply. Also would like the ISBN for &quot;Instand ActiveX Controls.<br>
<br>
Thans, John
 
Mike,<br>
<br>
If you are willing, I would also like to see your code for this and get the ISBN for the book.<br>
<br>
Thanks,<br>
Steve
 
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 &quot;Find&quot; 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
 
Hi,
John I would like to see the code that you developed
regards
balachandar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top