[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

taskbar

Posted on 1998-09-24
3
Medium Priority
?
336 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…
Suggested Courses

650 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