Connect the toolbar window

I would like to create an application that I can attach to my screen, so that when other windows are maximized, they do not hide my application and do not hide behind my application. "Always on top" is not good enough, as other windows may still be hidden behind it. This should effectively reduce the available size of my monitor and behave like a toolbar. Fullscreen applications should hide my toolbar.

So, for example, if I connect my application to the right side of my 1920 x 1080 monitor and its size is 200 pixels wide, the largest window I can open on this monitor will be 1720 x 1080 (or shorter if it is the main monitor with the Windows taskbar).

I remember how this was done in Windows XP with just an HTML file and some ActiveX controls. XP had a small combination to use this file as a "toolbar". I don’t remember exactly how I did it now.

I haven’t seen anything like it in Windows 7. If the HTML hack is still possible (I believe it isn’t), that would be fine, but I would rather create my own, compiled application. Is it possible?

+4
source share
1 answer

There's an article on CodeProject that seems to provide a sample for what you're looking for. The project is to create a toolbar for the desktop that remains attached to other windows on the screen, even if they are maximum.

In this article, we will develop a class called ApplicationDesktopToolbar. This class inherits from System.Windows.Forms.Form. Therefore, when we want to make our application behave like an application panel, all we need to do is inherit from ApplicationDesktopToolbar instead of System.Windows.Forms.Form.

Original author of the article: Arik Poznansky

+3
source

Source: https://habr.com/ru/post/1400127/


All Articles