Making a form always on top (but just for the application)

Posted on 2006-06-08
Last Modified: 2011-10-03

I've got an application that I am writing for a customer that has need of a toolbar that is always showing as long as they are on the application.  The base application itself is an MDI forms project but the window does not have to be an MDI child.  I've currently got the toolbar as a standalone form and have code to make it "always on top".. but all of the code I have found makes it "always on top" of everything.


Question by:MELeBlanc
    LVL 26

    Accepted Solution

    just use 0, frmmain

    where form1 is the form you want to show
    frmmain is your mdi form (not mdi child)
    LVL 8

    Expert Comment

    LVL 6

    Author Comment

    In all my years of VB programming I have never used that parameter in the show method.... now I know what I can use it for..  ;-)



    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    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…
    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    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…

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now