Link to home
Start Free TrialLog in
Avatar of rutexavier
rutexavier

asked on

taskbar

how can i create a taskbar in a vb form?
Avatar of tenaka
tenaka

How can I put a toolbar in my application?

               Compatibility:VB3  VB4  VB5

I pulled this of the Cool VB site, don't know if it's what you're after.

t

               Create a new form with all your buttons on it. Under VB5, you'll want to set the border property to "4 - ToolWindow".

               Put the following declarations in a new module:

               declare Function SetWindowWord Lib "User32" (ByVal hWnd as Long, ByVal _
                nIndex as long,  ByVal nNewWord as long) as long

               Next, put the following code in the load event of the toolbar form.

               SetWindowWord Me.hWnd, -8, Main.hWnd

               Replace main with the name of your main form.

By Task Bar, do you mean like MS-OFFICE or the Win 95 Taskbar?  There is much more to doing this then just setting the form as a toolbar.  There are an entire series of window messages/apis that deal with managing a Task Bar. For example,  As a Task Bar you tell windows who you are and your size and Windows adjusts the workspace on the desktop so that forms maximize properly.  I found some C code on the Microsoft site that does this and was converting it to VB, but I never finished it.
ASKER CERTIFIED SOLUTION
Avatar of HATCHET
HATCHET

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial