Dock form at top of screen across all applications

Posted on 2010-01-12
Medium Priority
Last Modified: 2012-05-08

I want to create a "bar" at the top of my screen that is visible across all applications.

How can I do this?
Question by:zattz
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
  • 2

Expert Comment

ID: 26291667
When you say across all applications, you mean other applications or applications/windows created by that same project?


Accepted Solution

Gene_Cyp earned 2000 total points
ID: 26291729
In any case, if I understood your question correctly, then try the following:

myForm.TopMost = true;
myForm.Locked = true;
myForm.StartPosition = System.Windows.Forms.FormStartPosition.Manual;

myForm.DesktopLocation = new Point(0,0); // if you want it at the top but not to hide your taskbar (if your taskbar is at the top)
myForm.Location = new Point(0,0); // if you want the form at the top no matter where your taskbar is
LVL 86

Expert Comment

by:Mike Tomlinson
ID: 26293247
That would technically put it above all windows...

...but if you want it to decrease the "client area" of the desktop so that when windows maximize they treat your app as part of the boundaries then you need to register it as an APPBAR:


Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying 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

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month8 days, 10 hours left to enroll

764 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