Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Dock Visual Basic Form to the bottom of the opperating system window.

Posted on 2003-03-15
Medium Priority
Last Modified: 2013-12-26
I am trying to dock my visual basic form to the bottom of the opperating system window.
I am using win2k. I  would like the form to dock just above the start menu.
The latest version of AIM (American Online Instant Messenger) incoporates this feature.  AIM will dock to the side of the screen, I want my form to dock to the bottom of the window.
Question by:jonathanbcook
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
  • 2

Expert Comment

ID: 8143915
I have created VB Code to do this, but the best code I have found is:

It does a GREAT job of docking and displaying forms as well as working with MDIForms as well. This is freeware. The commercial versions of like code would cost you several hundred dollars.


- Jim

Author Comment

ID: 8144121
I read the materails at the site that you gave me.  It apperas that this project that you referenced is for making MDI visual basic applications. I am not trying to create an MDI application.

Again, I am trying to dock the visual basic form to the bottom of the operating system window.  I would like to have all other application on the screen above my visual basic application when I maximize any other window.

Please correct me if I am wrong.


Expert Comment

ID: 8144701
Do you mean something like this
Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.


Author Comment

ID: 8147445
The project referenced by JohnMcCann is very close to what I am looking for.  The differences are:
  A. I am looking for:
      1. I want to have my form docked to the bottom of the window.
      2. I want to use my form, or create a new form.
      3. I want to be able to use the controlls on my form (ex: text box, combo box).
  B. This is what the project that John references.
      1. This project creates a TOOLBAR and docks the toolbar.
      2. No controls (ex: text box, combo box) can be used in the example that John references.
      3. The sample code docks the toolbar correctly to the top of the window and the sides of the window, but It does not dock correctly to the bottom of the window. It does not dock correctly to the bottom of the window because, application exten below the docked area.

Thanks for the input.  


Accepted Solution

JohnMcCann earned 2000 total points
ID: 8148111

If you open the AppBar project.

First off you will fnd the frmFloat is the frm that appears flaoating and the frmDock is the dockked form.  These are standard vb Forms.  First thing I would like you to do is double the size of both forms and add a combobox to each form, near the bottom

Open the module modGenral goto sub pSetAppBarDimensions and look for the line

glHeight = (frmDock.tbrToolbar.ButtonHeight + 60) \ glTwipsPerPixelY

and replace it with

glHeight = ((frmDock.tbrToolbar.ButtonHeight + 60) \ glTwipsPerPixelY) * 2

Run the project.

You will now see the combobox on both forms.

1. I want to have my form docked to the bottom of the window.

Desktop window or form window?

2. I want to use my form, or create a new form.

Just add a button or one of the toolbox buttons.

3. I want to be able to use the controls on my form (ex: text box, combo box).

I think we've demonstrated that above.  You will need to postion your combo as the taskbar orintation and size changes.

Author Comment

ID: 8156234
thank you very much

The functions that I was looking for were:


Both of these functions are windows API calls.

Thank you.


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

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
Suggested Courses

704 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