by Brian (11 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating:
(3 Votes)

This is a class module that allows a "Rebar", or an Internet Explorer style toolbar to be made. It subclasses the Rebar and can trigger events when the rebar is moved, resized, clicked, mouse moved, and a lot more. The rebar can hold any VB control, even UserControls. THIS IS NOT MY CODE! I am simply passing Ramon's code, which can be found at www.zonecorp.com His code made this sample possible! You can e-mail Ramon at [email protected]
Side Effects
The subclassing will crash VB if you try to stop the project without using the close button. In other words, if your project goes into break mode because of an error, VB will crash. This can be fixed by commenting out the "subclass me.hwnd" line in the Form_Load procedure. However, without this line your project won't recieve events.
API DeclarationsAre you kidding? This thing has more API calls that Bill Clinton has girlfriends :-)
Download ReBar (Internet Explorer Like Toolbar) in VB (8 KB)