Windows application anchored in the taskbar - c#

How do I create an windows application (preferably in C#) that gets anchored in the taskbar next to the system tray (similar to the Lenovo notebook battery application)?
I'm trying to display my glucose in real time on the taskbar - I need to display 3 digits (glucose) and an icon indicating if it is steady, going up or down.

Related

Blink tray icon in tray application (C# windows form)

I created one tray application. It's icon will be change based on condition.
At one point I want functionality in which my icon should be blink like it can be gif.

c# taskbar button switching/moving in multiple display environment

I've created a winforms application. All is running fine, also the taskbar button is created and shown in taskbar including the correct icon.
Whenever I move the form from one display to the second display, the taskbar button stays at the display from where the form was initial start.
I also compared the settings with another winforms application where the behaviour is correct. Means, the button is moving/switching/whatever to the active display where the form is moved to.
Hopefully it is just a small thing, but I came not across with it.
It is an OS feature.
For windows 7 there is no built-in support to show taskbar for your second monitor and your taskbar buttons will always show on first monitor taskbar.
For windows 8 you can open Taskbar properties and in Multiple displays settings, check Show taskbar on all displays and then set the value of Show taskbar bottons on: to Taskbar where window is open

Windows Store App Icon doesn't appear on Metro

In this occasion the problem I'm facing is related with the icon that appears in the metro menu in Windows 8, when developing an App. At the beginig, I was able to see the icon when developing the App (pressing F5). However, now I can't see the App Icons in the Metro menu. But when searching the App using the Windows icon + Q, I can see the icon of my app.
I realized out the this star happening when I was changing the default splash screen and icons by a custom ones. I have a red icon for the spalsh screen for scale 100 saying: A mixture of images with and without "scale" or "targetsize" qualifiers exists in this project for the logical name "Assets...." When a mixture exists, files without the qualifier are ignored.
I'm not sure if this is causing that the icon is not appearing.
Does any one have a clue?
Regards!
In Windows 8.1 new installed Application doesn't appear in the start menu automatically. You have to pin them there.
For this got to the metro start menu, swipe down (or click the arrow at the bottom left), search for your app -> select it -> select pin to start in the app bar.

divide the window to display a software, always on top

This function is like the "always on top", it is something like always occupy the right most area.
I wrote a software that the software will pull some messages from server periodically, so I want to put it into the right-most area of the screen, and never be overwriten by other windows unless the user press the minimize button.
So it means the other windows, even the maximize button is pressed, will only occupy the left side of the screen(the space that not be occupied by my software).
Is it achievable in MS Windows?
Sounds like the support for Application Desktop Toolbar is what you want:
An application desktop toolbar (also called an appbar) is a window that is similar to the Windows taskbar. It is anchored to an edge of the screen, and it typically contains buttons that give the user quick access to other applications and windows. The system prevents other applications from using the desktop area used by an appbar. Any number of appbars can exist on the desktop at any given time.
The best you can do is to make your window "always on top". You can't reserve part of the desktop exclusively for your application.

Winforms: How to change application taskbar icon programatically for Pinned App in Windows 7

I am changing the icon by doing the following in the Main form:
this.Icon = myIcon;
And this works fine in Windows 7 except when I "pin" the application to the taskbar, this seems to have no effect on the taskbar icon and only affects the top/left of the window icon.
How do I ensure that I can change the application taskbar icon as well in Windows 7 without having to use Windows 7 Icon overlays as that will just be overlaying another graphic on the icon but not changing the main icon?
Pinned app actually creates a windows shortcut. So to do this will have to manipulate a windows shortcut file on disk. Not a good idea as it seems hacky. Decided to use overlays instead.

Categories

Resources