﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » Incremental Search in the BrowseDialog</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 02:49:36 GMT</lastBuildDate><ttl>20</ttl><item><title>Incremental Search in the BrowseDialog</title><link>http://forum.strataframe.net/FindPost2545.aspx</link><description>Our old VFP Framework's search class worked so that when the user entered text in the search field, the results display would constantly update with the closest match. I would like to either add this capability to the SF default BrowseDialog by creating my own and inheriting your class or replace the existing behavior. I dont want to have problems down the road when you publish updates though. Can you point me in the right direction?&lt;br&gt;
&lt;br&gt;
I am also quite interested how this works out from a performance standpoint, I remember once the person that taught me VFP -back in the day- showed me this function searching a table with over a million rows and it was instant.</description><pubDate>Thu, 31 Aug 2006 12:11:53 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Incremental Search in the BrowseDialog</title><link>http://forum.strataframe.net/FindPost2595.aspx</link><description>LOL ok thanks.</description><pubDate>Thu, 31 Aug 2006 12:11:53 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Incremental Search in the BrowseDialog</title><link>http://forum.strataframe.net/FindPost2577.aspx</link><description>Yes, an incremental search in FoxPro was quite easy to develop, but with SQL Server, it's a bit more difficult because you're not working with directly connected data.&amp;nbsp; In fact, our browse functionality that is included with our current FoxPro medical software version includes incremental search functionality.&amp;nbsp; &lt;/P&gt;&lt;P&gt;If you want to include incremental search functionality to the BrowseDialog, you'll most likely have to do so&amp;nbsp;by using the soure code file for the BrowseDialog and modifying it... there's not really any way to extend it and provide that functionality.&amp;nbsp; The reason being is that each type you type a character, you need to query the database for the proper data... and you'll end up with the functionality similar to an "auto-complete" textbox where as you type, it searches for possible options to complete for you.&amp;nbsp; You would also need to make these database queries asynchronous since you cannot pause the UI in between each keypress to retrieve the next set of records.&amp;nbsp; And when you get into asynchronous processing, you'll need to make sure you synchronize your thread through an ISynchronizeInvoke object on the main thread (usually the BrowseDialogForm itself).&amp;nbsp; Those topics are way more advanced than I have time to get into on the forum, but MSDN's documentation has lots of info on it if you search for "async calls" and "ISynchronizeInvoke".&lt;/P&gt;&lt;P&gt;Have fun with that :)</description><pubDate>Thu, 31 Aug 2006 00:53:24 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>