Create your Own TaskBar Control in VB5/6

I coded this within a couple hours tonight (7/11/1999). It works well for its limited design goals, but it needs some features expanded.


Source code is included.



The number of pixels that will hang down into the screen when the taskbar is hidden.


The number of steps drawn while moving the taskbar down.



Similar to Form.GotFocus, but also works when the application gets the focus.


Similar to Form.LostFocus, but also works when the application loses focus.


The mouse was moved over the taskbar.


The mouse left the taskbar window.


The taskbar started to open up.


The taskbar started to close up.


The taskbar was closing, but started to open.


The taskbar was opening, but started to close.


The taskbar is open all the way.


The taskbar is closed all the way.

Source Code

The control is distributed via source code. The license is GPL. (see If you make any significant changes, please let me know and I'll distribute them with this. Or if you're just using it for something amazingly cool, I'd be interested to know about that too.


  • Taskbar can only be placed at the center top of the screen.
  • "Runs" while in the IDE.
  • Opening and closing are somewhat slow (especially compared to start menu).
  • The whole thing has too many hacks involving timers.


Any suggestions, helpful hints, or flames should be directed to:

David Newcum

Download Zipped Project File (13k)


  • taskbar

    Posted by Legacy on 01/06/2001 12:00am

    Originally posted by: vishal

    your program is not able to adjust the screen acordind to bar as happens in

  • Fix for the timers in the taskbar project

    Posted by Legacy on 05/14/2000 12:00am

    Originally posted by: John Meller

    For those of you who dont know how to fix the 'timer' problem in this taskbar project here is the fix
    Private Sub UserControl_InitProperties()
    'this will disable the time when you are in design mode
    Timer1.Enabled = Ambient.UserMode
    End Sub

    Private Sub UserControl_ReadProperties(PropBag As PropertyBag)
    'this will disable the time when you are in design mode
    Timer1.Enabled = Ambient.UserMode
    End Sub

    Hope this helps :)

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Moving from an on-premises environment to Office 365 does not remove the need to plan for disruptions or reduce the business risk requirements for protecting email services. If anything, some risks increase with a move to the cloud. Read how to ease the transition every business faces if considering or already migrating to cloud email. This white paper discusses: Setting expectations when migrating to Office 365 Understanding the implications of relying solely on Exchange Online security Necessary archiving …

  • Enterprises are increasingly looking to platform as a service (PaaS) to lower their costs and speed their time to market for new applications. Developing, deploying, and managing applications in the cloud eliminates the time and expense of managing a physical infrastructure to support them. PaaS offerings must deliver additional long-term benefits, such as a lower total cost of ownership (TCO), rapid scalability, and ease of integration, all while providing robust security and availability. This report …

Most Popular Programming Stories

More for Developers

RSS Feeds

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