The example project you provide implements a Tool Band. It implements the IDeskBand
interface to display a toolbar in IE.
For the functionality you are asking for, you need to implement a Browser Helper Object instead, which is a completely different beast, and a very different implementation than a Tool Band.