Important alert: (current site time 7/16/2013 3:22:03 AM EDT)
 

winzip icon

[UPDATED] IE Webamp (How to make Explorer band addons for IE)

Email
Submitted on: 12/6/2000 5:35:11 PM
By: xTrin  
Level: Intermediate
User Rating: By 49 Users
Compatibility: VB 6.0
Views: 55319
(About the author)
 
     This is an explorer band addon for IE/Windows Explorer (ie when you click on Favorites the little side bar that comes up is an Explorer Band) the example is a simple mp3 player that runs while IE is open so you can listen to mp3s while you look at webpages...you could change this into something more useful...vote vote vote!!! Read the README file first!!!!!! New Update!! added a readme and .reg file with instructions for adding a button to the IE toolbar for IE Webamp!!! Vote!! [new screenshot!] xTrin

 

Windows API/Global Declarations:

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
'**************************************
'Windows API/Global Declarations for :[UPDATED] IE Webamp (How to make Explorer band addons for IE)
'**************************************
in the code
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 1 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

12/6/2000 10:27:36 PMRAM

WERE DOES THIS MP3 BAR APPEAR?
(If this comment was disrespectful, please report it.)

 
12/6/2000 10:42:25 PMRAM

Were do i change the CLSID?
(If this comment was disrespectful, please report it.)

 
12/6/2000 11:23:17 PMxTrin

well if the CLSID on your system is different then the one in the webamp.reg file change it...for example you'd want to change the {2616531D-FA53-408B-87AA-2A874972B272} part of
[HKEY_CLASSES_ROOT\CLSID\{2616531D-FA53-408B-87AA-2A874972B272}] to the CLSID associated with IE Webamp on your system and do the same with the other entry in the webamp.reg file

vote vote vote!!!
(If this comment was disrespectful, please report it.)

 
12/6/2000 11:39:16 PMRAM

BUT WERE DO YOU GET THE EXPLORER'S CLSID?
(If this comment was disrespectful, please report it.)

 
12/7/2000 7:12:48 AMIcecubeRyder

xTrin, do you know of a way to create new radio or link toolbar?

(If this comment was disrespectful, please report it.)

 
12/7/2000 10:45:59 AMNewmann

this is a great piece of code! 5 stars.

one question, though... i have been trying to build a "DeskBand", which is (supposedly) very similar to an IE WebBand... do you know of a way for creating DeskBands using *only* VB?
(maybe this link can help you out; the examples are based on C++... sofar, my porting efforts to VB have failed miserably...
http://msdn.microsoft.com/workshop/browser/ext/overview/Bands.asp )

thanks, and keep up the good work!
(If this comment was disrespectful, please report it.)

 
12/7/2000 12:04:18 PMxTrin

to make a deskband requires only changing the implemented categories in the registry...if you look in the webamp.reg file and see where it says Implemented Categories change the 3 in {00021943-0000-0000-C000-000000000046} to a 2 and you will have a deskband
(If this comment was disrespectful, please report it.)

 
12/7/2000 12:08:22 PMxTrin

to make a radio bar also requires editing the registry...you need to add the CLSID of the Explorer band to HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Toolbar = '{CLSID of your Explorer band}' that would make a radio type bar. I tried this once but it didn't turn out to well...
(If this comment was disrespectful, please report it.)

 
12/7/2000 11:14:50 PMxTrin

it's me (again) ok I updated the zip file to include a readme file with instructions for adding a button to Internet Explorer's Toolbar for IE Webamp..take a look!
(If this comment was disrespectful, please report it.)

 
12/10/2000 2:29:11 PMMark Withers

It crashes IE! Doesn't work on my computer.
(If this comment was disrespectful, please report it.)

 
12/24/2000 10:14:37 AMvbstratus

nice code...could use better instructions and a GUI!
(If this comment was disrespectful, please report it.)

 
12/26/2000 10:13:57 PMxTrin

i've been working on the GUI some lately...i have an updated version of the player with install support if anyone is interested...just email me
(If this comment was disrespectful, please report it.)

 
1/8/2001 9:17:52 AMBrad

You guys should get the book Visual Basic Shell Programming by O'Reilly. I bought it a few months ago for a project and it helped me out alot. The things it teaches you are amazing, and the things you guys are asking about are all included in that book.
(If this comment was disrespectful, please report it.)

 
1/9/2001 7:38:15 AMTBlack

I'd really love to see it working.. but it doesn't show up in the Bars list. I tried to recompile it (and changing the ID after registering the DLL), but no luck. Any hint? :-)
P.S.
At least I have the button on the IE Toolbar... ;-)
(If this comment was disrespectful, please report it.)

 
1/18/2001 6:20:53 PMAsa Hicks

Hi, can someone *please* adapt this script to work in VB5.0?
Cheers,
Asa.
(If this comment was disrespectful, please report it.)

 
2/13/2001 2:32:19 PMJuanR

Nice Code. Worked first try.
(If this comment was disrespectful, please report it.)

 
2/23/2001 11:23:05 AMAlex Wolfe

This code works well with some exception...
The backspace key does not work in text fields. The keydown and keyup events fire on every key stroke with the exception of the backspace. This makes it rather difficult to make your own production quality search bar or other control that requires typing.
I have searched MSDN and other sources and have yet to come up with a good reason why this might be occuring. The author is clueless as well.
It also might be worth noting, that if you want to have any sort of links on your explorer band control, you can use the Shellexecute API (passing the desired URL as the file parameter) to load a url in the browser window.
If anyone has an answer to the backspace phenomenon, please shoot me a message at alexkwolfe@yahoo.com.
Thanks!
(If this comment was disrespectful, please report it.)

 
2/27/2001 9:03:11 PMOfcaah

Some kind of sollution to backspace problem:
(If this comment was disrespectful, please report it.)

 
2/27/2001 9:04:55 PMOfcaah

uh, something went wrong, here's the URL: www.sheepnet.org/vb/backspace_in_bands.txt

Could someone please tell me, how to create more than one band? I think it's pretty easy, and I just don't get something.
(If this comment was disrespectful, please report it.)

 
3/3/2001 4:26:54 AMMichael L. Barker

Yet again, nice job!
(If this comment was disrespectful, please report it.)

 
3/15/2001 12:09:41 AMvb learner

I still can not find out how you do all this. I read your read me, but I cant find the ie .reg ???? where is it You need more clarified directions
(If this comment was disrespectful, please report it.)

 
3/19/2001 6:23:23 AMjaleel p a

I am not getting the hot icon(when mouse move over the webband button on the toolbar) on the IE toolbar control.
(If this comment was disrespectful, please report it.)

 
4/3/2001 9:16:06 AMPaul Hulley

Nice code, have you any other code on the same sort of topic. Possibly adding a drop down box from the menu icon like the Mail button does.
Cheer's anyway
Paul.
(If this comment was disrespectful, please report it.)

 
5/9/2001 7:20:17 AMAvi

your code is running beautifully,
but every time I restart my computer,
the registry changes in the
(If this comment was disrespectful, please report it.)

 
6/22/2001 9:08:40 PMcbudd

Excellent rating! This is nice... one question: did anybody find out how to click on a URL and open it in the browser? I understand Shellexecute should work but I couldn't find a working example. All info is welcome!
(If this comment was disrespectful, please report it.)

 
6/27/2001 7:00:38 AMAlan

I've covered all the material in the readme and add button files and have the icon on the toolbar and the webamp listed in explorer bar under the view menu. I've also ensured that the CLSID values match. However, when i try to activate the bar it crashes my browser. Any ideas?
(If this comment was disrespectful, please report it.)

 
6/29/2001 7:18:55 AMAlan

ok, i have it working. is there any way to embed windows media player into the bar?
(If this comment was disrespectful, please report it.)

 
7/26/2001 5:09:08 AMNic

How can i create my own custom band in ie, something like the
(If this comment was disrespectful, please report it.)

 
7/29/2001 3:05:17 PMNathan Arendt

Just a minor problem: The Class_Terminate event never seems to fire. Because of this any code in your terminate event is not executed and may lead to GPFS or other fatal exceptions. I got around this problem by calling Class_Terminate myself when the IDeskBand_CloseDW event fires.
(If this comment was disrespectful, please report it.)

 
8/3/2001 3:31:04 AMgeorge.pagotelis@nec.com.au

Does anybody have VB code (not Windows) for creating a toolbar like google snap in? I've search MSDN
(If this comment was disrespectful, please report it.)

 
8/10/2001 3:43:00 AMNathan Arendt

I have found a solution to backspace and other accelerator keys not working when the webbrowser control is hosted in a band. Please see my code here: http://www.planetsourcecode.com/vb/scripts/showcode.asp?txtCodeId=26044&lngWId=1
(If this comment was disrespectful, please report it.)

 
11/2/2001 10:26:31 PMshine

Good job, have you read the book VB Shell Programming by O'Reilly Press...Very good book for this area of programming windows
(If this comment was disrespectful, please report it.)

 
11/9/2001 6:41:42 AMRaducu

I find this toolbar great...I made it a radio bar, but now I want a button that loads a page in the browser (like the google toolbar or yahoo). I tried to use DDE with the current browser but it's not working from an activex dll (i think it's normal).
If you guys have any idea, please help ...!!! :-))

(If this comment was disrespectful, please report it.)

 
11/17/2001 12:19:40 PMAndy

How do I add Windows XP themes to the explorer bar? By the way it works great :)
(If this comment was disrespectful, please report it.)

 
12/6/2001 12:23:00 AMsookphon

help me.. Key Backspace not work in text box .. if u code new .. please send me.. sookphon@yahoo.com
(If this comment was disrespectful, please report it.)

 
12/7/2001 9:09:30 AMElmo

i have converted this to act as a toolbar but i cant set the height and its massive, HELP ME PLEASE
(If this comment was disrespectful, please report it.)

 
12/20/2001 7:04:48 AMdphilc

Yes this is very useful indeed. However, I have a number of questions (too many to post here). Is there any online where I can find out about manipulating vbshell without having to use someone else's tlb?
(If this comment was disrespectful, please report it.)

 
1/17/2002 11:56:29 PMHotline Corsair

i did everything in the read me and i get nothing. what am i missing?
(If this comment was disrespectful, please report it.)

 
2/1/2002 5:42:15 PMTom

Anyone have a copy of the source, this link seems to be broken?

thanks
(If this comment was disrespectful, please report it.)

 
2/18/2002 3:40:17 AMMario

Lovely code. How can I implement a drop down?
(If this comment was disrespectful, please report it.)

 
2/19/2002 11:03:10 AMmoynul

Thanks you for the code. I've registered it and a button appears on the Toolbar, However, when I click the button nothing happens. Can you tell me what I am doing wrong? Thanx.
(If this comment was disrespectful, please report it.)

 
2/19/2002 8:18:04 PMPhil

Does this code compile ok with VB6? I get the dll to compile, and register the dll, but IE doesn't display the band properly. If it does get into IE, none of the controls in the VB form are visible. Is there any special trick to compiling a DLL?
(If this comment was disrespectful, please report it.)

 
3/8/2002 9:49:12 PMMichael Barnathan

If you find a way to do a google toolbar style thing, please post it. Everyone on PSC and off will love you for it; this code is near impossible to find.
(If this comment was disrespectful, please report it.)

 
3/13/2002 5:18:46 AMAD

Which folder should i put the dll?
(If this comment was disrespectful, please report it.)

 
3/21/2002 3:43:50 PMDieter Verfaillie

hmmm, seems to be incompatible with Internet Explorer 6...
anyway, great code!
(If this comment was disrespectful, please report it.)

 
3/21/2002 3:53:19 PMDieter Verfaillie

was this created for IE4 or IE5+?
(If this comment was disrespectful, please report it.)

 
3/21/2002 11:58:41 PMSteve Williams

I'm guessing that its not compatible with IE6. I finally got the icon to show properly but nothing happens when clicked. MSDN has info on creating a menu item in the tools menu but not the View | Explorer Bar SubMenu and it does not show in there. I'm going to try it on an old PC running IE5 and see what happens. If anyone has the cure PLEASE post.
(If this comment was disrespectful, please report it.)

 
3/22/2002 12:24:22 AMSteve Williams

OK...I have found that this code works great on a system running Win98 and IE5 but does not work at all with WinXP and IE6. Hey xTrin its time for an update...
(If this comment was disrespectful, please report it.)

 
3/25/2002 5:36:02 AMAndy

Works fine under WinXP on IE6.0
(If this comment was disrespectful, please report it.)

 
3/26/2002 7:37:43 PMSteve Williams

Your right Andy, I don't know what I did wrong the first time but I edited out all registry reference's to webamp (except the VB project reference) and tried again and now it works...go figure...Sorry if I missled anyone.
(If this comment was disrespectful, please report it.)

 
4/20/2002 9:30:58 PMNikon

Just me but i can't get it to work please send me some info on installing it from a program point-a-view, like a setup !! PS on Win2000-IE6 it not working or i'm doing somting verry wrong !!!
(If this comment was disrespectful, please report it.)

 
8/11/2002 1:12:31 PMwutaag

to make it a bar register the dll take the new CLSID from the register and crate an entry to HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Toolbar ... the entry is the new CLSID (string) and then the value whatever you want ...(title)
anyone know how to work together with the browser app ? eg. make the bar a second address bar or something
(If this comment was disrespectful, please report it.)

 
8/12/2002 1:32:17 PMwutaag

ok for people that don't know: to make a ReBar autoalign remove this code:
If (dbi.dwMask And DBIM_MODEFLAGS) Then
dbi.dwModeFlags = DBIMF_VARIABLEHEIGHT
End If
and to make it open a url add this:
Public wb As InternetExplorer
Set wb = isp.QueryService(VarPtr(wba), VarPtr(wb2))
wb.navigate ...u know the rest.gl

(If this comment was disrespectful, please report it.)

 
8/12/2002 1:56:00 PMwutaag

oh and to fix the Backspace thing all i did is remove the WS_CHILD style from the list ...everything seems to work just as fine ..good luck
(If this comment was disrespectful, please report it.)

 
8/26/2002 6:16:14 PMZebo

Didn't work with me, i opened it up and it game a missing file error and when a ran it it did nothing.
(If this comment was disrespectful, please report it.)

 
8/30/2002 12:03:31 AMwutaag

well ..read the readme.txt file that came ..you dont run it because its a dll .. you have to register and install first ... good luck
(If this comment was disrespectful, please report it.)

 
10/5/2002 5:16:04 AMAndrew Thorpe

this is s^it- it just chucks errors at me
(If this comment was disrespectful, please report it.)

 
12/15/2002 12:51:43 PM

Well i have maded the button in IE and the side bar appears fine :) but nothing is in it :( where do i put the DLL or what do i do to it PLEASE HELP
(If this comment was disrespectful, please report it.)

 
1/23/2003 9:14:41 AMBelgiumBoy_007

G'day,

I can get the icon and stuff on the toolbar, no problem. But why doesn't anything happen when the button is pressed ? Also how do you make an application run when it's pressed (like MSN)?

btw.: I gave you 5/5

Greetz,
BelgiumBoy_007
(If this comment was disrespectful, please report it.)

 
10/4/2003 9:59:35 PMMorpheous

xTrin,
Wonder if you could help me out on a subject here.
I am trying to pass back the current url but cannot seem to get it to work.

I have tried using:
Public WithEvents IE As HTMLWindow2
But whenever I try and retrieve the url from this it returns as Object Variable or With Block Variable not set.

Sub Form_Load ....

set Ie = new iewebamp
IE.document.url

End Sub


I added of course the necessary variables to set this up but does not seem to work.
Please let me know if you can help, thanks

Eric Cogen
(If this comment was disrespectful, please report it.)

 
12/17/2003 11:16:54 PMBiggt

nice :P
(If this comment was disrespectful, please report it.)

 
3/14/2004 4:56:11 PM

I can't find the friggin' DLL file!?!
(If this comment was disrespectful, please report it.)

 
5/3/2004 8:33:08 PM

Does this code or application run under windows XP and IE 5 or greater? If so is there an updated version of the code i could use thank u.
(If this comment was disrespectful, please report it.)

 
6/11/2004 6:16:24 PM

When I open the project it returns an error about missing MSDXM.OCX
(If this comment was disrespectful, please report it.)

 
7/24/2004 8:47:21 PM

I really want to get it to work but it seems impossible. I made a IEWebamp.dll and registered it like this: regsvr32 "c:\IEWebamp.dll"
but still nothing. I noticed that in thit zip is soma reg files but they don't but any information to the registry. what seems to be the problem??? what to do to get this explorer bar to work? please help if someone has some ideas.
(If this comment was disrespectful, please report it.)

 
11/14/2004 1:32:56 AMHyperHacker

This isn't related to your code but dude, your computer is overflowing with spyware! Get Ad-Aware or something man!
(If this comment was disrespectful, please report it.)

 
9/28/2005 12:34:15 AMBooGhost

Great code.... but please could someone post how to make it open a url in the window. i can't manage to do it

PD: sory about my crappy english
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.