The Code Project View our sponsorsClick here for Whole Tomato Software - Home of Visual AssistAdvertise on the CodeProject
Home >> Free Programming Tools >> CodeProject Tools

The Code Project Search Bar
By Michael Dunn

The Code Project SearchBar gives you quick access to the Code Project site, and lets you do searches at any time, from any web page. 
 IE5
 Posted 23 Apr 2001
 Updated 8 Jul 2001
Articles by this author
Send to a friend
Printer friendly version
Home Latest updates Submit your article About Us Advertise on the Code Project Contact us Discussion Forums
Navigation bar
50 users have rated this article. result:
4.12 out of 5.

Introduction

The Code Project SearchBar gives you quick access to the Code Project site, and lets you do searches at any time, from any web page. The SearchBar is a plugin that adds a toolbar to Internet Explorer 5 or later. The toolbar has a text box and buttons that give you instant access to Code Project features. Here's what the toolbar looks like, and what the controls do:

 [Toolbar description - 22K]

SearchBar revision history

System Requirements

Windows 95, 98, Millennium, NT 4, or 2000, with Internet Explorer 5 or later.

Quick Searching

There are two types of searches you can do from the SearchBar: keyword and author. The image above shows an example of a keyword search. Enter the text you want to find in the search box, and click Keyword Search or press the Enter key. The search results will appear in the browser window. You can also enter an author's name in the search box and click Author Search to find Code Project articles written by that author.

The SearchBar also supports drag and drop searching. If you see something (for example, a program name, COM interface name, etc.) on a web page and want to use it in a Code Project keyword search, you can highlight the text and drop it on the SearchBar. For example, suppose you're reading this MSDN page on shell extensions:

 [Selecting text - 24K]

If you want to search for "shell extension handlers" in Code Project articles, first select the text as illustrated above. Then drag the text onto the SearchBar. The mouse cursor will change to show that the SearchBar is ready to accept the text:

 [Dropping text on the toolbar - 24K]

When you release the mouse button, the SearchBar will perform a keyword search on the selected text. You can also drag text from any other program that supports dragging and dropping of plain text, such as Word or Visual Studio.

New in version 1.2: The SearchBar also adds search capability to the context menu displayed when you select text in the browser and right-click it. The new menu items, shown below, are Code Project Keyword Search and Code Project Author Search. This feature is particularly useful if you use MSN Explorer, which doesn't support IE toolbar extensions.

 [IE context menu items - 6K]

Code Project Site Links

Click the CodeProject button in the toolbar to go right to The Code Project's home page. You can also click the Site Links button to see a menu of shortcuts to various areas of the site. Choosing SearchBar Web Page takes you to the SearchBar's page at The Code Project. Choosing My Code Project Bookmarks takes you to the list of bookmarks you have saved in your Code Project account. (Note that you must enable automatic logging-in in your Code Project account settings for this link to work.) The other link descriptions should be self-explanatory.

 [Site links menu - 8K]

The SearchBar Control Menu

Click the down arrow next to the CodeProject button to see the SearchBar's control menu:

 [Control menu - 3K]

Click the About item to see the SearchBar about box, which shows the program's version number.

SearchBar Options

Click SearchBar Options to open the SearchBar options dialog.

 [Options dialog - 7K]

The first check box controls whether text is shown on the toolbar buttons. You can turn off the button text so the SearchBar will take up less screen real estate, as shown below:

 [Toolbar without button text - 12K]

The set of radio buttons controls how keyword searches are done. The default is to search for articles containing any of the search words. So for example, searching for "color button" finds articles containing either word. Click the "Search for articles containing the exact search phrase" radio button to change the behavior to find only articles containing the exact phrase you enter.

Both of these settings are stored on a per-user basis.

Installing and Activating the SearchBar

Download the SearchBar self-extracting executable from the link at the top of this page. If you are installing over an existing copy of the SearchBar, close all Internet Explorer windows before running the EXE. If you don't do this, the SearchBar DLL will be in use and the installer won't be able to replace it with the new copy. If you are installing over version 1.1 or later of the SearchBar, the installer will detect when the DLL is in use and alert you.

Run the EXE, select the directory where you want the files installed, and click Install.

 [Install dialog - 7K]

The next time you run Internet Explorer, click the View menu and point to Toolbars. There will be a new item that reads The Code Project SearchBar. Click this item to display the SearchBar. Repeat those steps to hide the SearchBar. Alternatively, you can right-click any existing Internet Explorer toolbar to get a popup menu that lists the available toolbars, and click The Code Project SearchBar in that menu.

 [Toolbars menu - 21K]

Note that, depending on your Internet Explorer settings, you may have to log off and back on for Internet Explorer to begin using the newly-installed SearchBar.

Uninstalling the SearchBar

You can uninstall the SearchBar using the Add/Remove Programs Control Panel applet. The SearchBar has a really simple uninstaller at this time, which only unregisters the SearchBar DLL. You will need to delete the files manually. (This will be fixed in a future update.)

Acknowledgements

The SearchBar was built with Erik Thompson's DeskBand ATL Object Wizard. Thanks also to Erik for helping me fix bugs over MSN Messenger at 2 AM!

Version History

About Michael Dunn

Michael lives in sunny Los Angeles, California, and is so spoiled by the weather that he will probably never be able to live anywhere else. He graduated from UCLA with a math degree in 1995, and immediately landed a job as a QA engineer at Symantec, working on the Norton AntiVirus team. He pretty much taught himself Windows and MFC programming, and in 1999 he designed and coded a new interface for Norton AntiVirus 2000.

He also enjoys his hobbies of playing pinball, bike riding, and the occasional PlayStation or Dreamcast game. (Game currently in the PSX: Wipeout 3.) He is also trying not to forget the languages he's studied: French, Mandarin Chinese, and Japanese.

Click here to visit Michael Dunn's homepage.

[Top] Sign in to vote for this article:     PoorExcellent  

View our sponsorsWndTabs. Make Visual Studio the way it was meant to be,Advertise on the CodeProject

Hint: For improved responsiveness, use Internet Explorer 4 (or above) with Javascript enabled, choose 'Use DHTML' from the View dropdown and hit 'Set Options'.
 Keyword Filter
 View   Per page   Messages since
New threadMessages 1 to 25 of 107 (Total: 107)[First] [Prev] [Next] [Last]
Subject 
Author 
Date 
  SourceCode
Unconfirmed/Anonymous posting Anonymous 2:05 1 Aug 01 
  Suggestion!
 Jean-François Roberge 13:59 20 Jul 01 
  Re: Suggestion!
 Michael Dunn 15:28 20 Jul 01 
  Bar Icon
 Jeremy Davis 5:09 9 Jul 01 
  Re: Bar Icon
 The Code Devil 9:11 9 Jul 01 
  Re: Bar Icon
 Michael Dunn 12:39 9 Jul 01 
  Re: Bar Icon
Unconfirmed/Anonymous posting Anonymous 13:14 9 Jul 01 
  Re: Bar Icon
 Jeremy Davis 4:05 10 Jul 01 
  Alien invades the toolbar! [was: Bar Icon]
 Michael Dunn 2:28 13 Jul 01 
  Re: Alien invades the toolbar! [was: Bar Icon]
 Jeremy Davis 4:05 13 Jul 01 
  Open as URL in New Window!!!
 Pete Bassett 4:38 9 Jul 01 
  Re: Open as URL in New Window!!!
 Michael Dunn 4:26 10 Jul 01 
  Visual Basic
Unconfirmed/Anonymous posting Anonymous 9:35 26 Jun 01 
  Re: Visual Basic
 Norm Almond 4:38 9 Jul 01 
  Re: Visual Basic
 Christian Graus 5:41 9 Jul 01 
  Re: Visual Basic
 Norm Almond 5:50 9 Jul 01 
  How to add a combo box into CToolBatCtrl?
 Arthur Choi 11:50 8 Jun 01 
  Start size?
Unconfirmed/Anonymous posting Sionic 7:59 6 Jun 01 
  Re: Start size?
 Michael P Butler 4:38 7 Jun 01 
  Re: Start size?
 Michael Dunn 13:41 7 Jun 01 
  The only flaw is that CodeProject search is unusable...
Unconfirmed/Anonymous posting Anonymous 10:00 5 Jun 01 
  Re: The only flaw is that CodeProject search is unusable...
 Tomasz Sowinski 10:15 5 Jun 01 
  Re: The only flaw is that CodeProject search is unusable...
 Michael Dunn 16:34 5 Jun 01 
  One more feature request
 Rainer Mangold 16:33 4 Jun 01 
  Re: One more feature request
 Michael Dunn 16:31 5 Jun 01 
Last Visit: 12:00 Friday 1st January, 1999[First] [Prev] [Next] [Last]
Home >> Free Programming Tools >> CodeProject Tools
Advertise on The Code Project
Article content copyright Michael Dunn, 2001
everything else © CodeProject, 1999-2001.