Solved

taskbar

Posted on 1998-09-24
3
332 Views
Last Modified: 2010-04-30
how can i create a taskbar in a vb form?
0
Comment
Question by:rutexavier
3 Comments
 

Expert Comment

by:tenaka
ID: 1436443
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.

0
 
LVL 3

Expert Comment

by:rmichels
ID: 1436444
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.
0
 
LVL 3

Accepted Solution

by:
HATCHET earned 0 total points
ID: 1436445
rutexavier,

To create a TOOLBAR in your VB form, right click on the ToolBox window and select "Components...".  Select the Microsoft Common Controls (SP2) - COMCTL32.OCX.  Click OK.  Double Click on the Toolbar Control to place it on your form and set the properties according to how you want it to look.  Right click on the newly placed Toolbar and select Properties for more options on how you can configure it.

To create a TASKBAR, as in a Toolbar similar to the types that IE 4.0x and Office 97 use, go to the following web site and read up on it.  There's a control you can download and use that does most the work for you.  I've used it before and really like it :

Office 97 Toolbar :
http://www.zonecorp.com/VB5/Toolbar.htm

IE 4 Toolbar :
http://www.zonecorp.com/VB5/RebarVB.htm

Microsoft Support Document on creating custom Toolbars :
http://support.microsoft.com/support/kb/articles/q142/1/87.asp

Good luck,

HATCHET
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question