May 24, 2019
Hot Topics:

An Introduction to Vista's Integrated Search Capabilities

  • May 17, 2007
  • By Matt Goebel
  • Send Email »
  • More Articles »

Now that you are a bit more comfortable with the query, it is time to tie up the remaining pieces. You still need to create your OLE DBCommand object and OLE DBDataReader object, but as stated before, this is done the exact same way you would with any other database. After opening the connection to the data source, you will execute the query and get back your results. All that is needed after that is a quick iteration through the reader object to populate the list view.

conn.Open( );
OleDbCommand dbCommand = new OleDbCommand (searchQuery, conn);
OleDBDataReader reader = dbCommand.ExecuteReader( );

while (reader.Read( ) )
   . . .

reader.Close( );
conn.Close( );


As you can see from the sample application, Microsoft has given developers an excellent and powerful tool to harness in your applications. Although there are many improvements that could be made to this simple application, I hope it is able to get you on the right course. If you are interested in pursuing further information about integrating with Vista's search, I strongly recommend the Windows SDK as a great reference.

About the Author

Matt Goebel is a Solution Developer and Project Manager at Crowe Chizek in Indianapolis, Indiana. He is a thought leader focusing on Smart Client architecture. He has a B.S. Degree in Computer Technology from Purdue University and is certified in MCAD and MCSD.

Page 2 of 2

Comment and Contribute


(Maximum characters: 1200). You have characters left.



Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.

Thanks for your registration, follow us on our social networks to keep up-to-date