Solved

taskbar

Posted on 1998-09-24
3
333 Views
Last Modified: 2010-04-30
how can i create a taskbar in a vb form?
0
Comment
Question by:rutexavier
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

739 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