taskbar

C# - Changing the icon of the taskbar

大憨熊 提交于 2019-11-30 17:35:31
I want to change the icon on the taskbar of my software, so I changed the project settings. This path was suggested by Visual Studio itself But my taskbar still shows the same icon as before (the standard one) - In my Explorer the .exe has the correct icon, it just won't change in the taskbar. I also tried to end explorer.exe and restart the task, but this didn't help at all. I also tried to set the resolution on 16x16 and 32x32 but both didn't work. You need to give your form that icon as well. The application icon is the one that is embedded in the application and displayed in Explorer or on

control windows 7 taskbar grouping for my application

三世轮回 提交于 2019-11-30 15:54:53
问题 My program needs to open a series of information windows when requested by a user, and would like to implement some kind of custom grouping on the windows 7 taskbar. Desired functionality: All of my information windows should be grouped together (if grouping is enabled on the users system, that is) but my main window should NOT be grouped with the information windows. I can not spawn a new process for my information windows. My thought process is that there could be a way to modify the window

control windows 7 taskbar grouping for my application

送分小仙女□ 提交于 2019-11-30 15:30:04
My program needs to open a series of information windows when requested by a user, and would like to implement some kind of custom grouping on the windows 7 taskbar. Desired functionality: All of my information windows should be grouped together (if grouping is enabled on the users system, that is) but my main window should NOT be grouped with the information windows. I can not spawn a new process for my information windows. My thought process is that there could be a way to modify the window handle of the information window somehow to get the taskbar to group it separately but I honestly don

How to toggle/switch Windows taskbar from “show” to “auto-hide” (and vice-versa)?

我是研究僧i 提交于 2019-11-30 13:29:36
Basically I want to make simple toggle program (that will be mapped to some keyboard shortcut) that set taskbar to auto-hide mode if in normal mode (and conversely, to normal show mode if in auto-hide). Do You know how to implement it in C#? (or Win32 C++, but anything that will actually do it is fine.) Thanks. Hope I've made myself clear. -- I don't really want any full screen app that will overlap taskbar, only windowless program that toggles show mode and quit. I switch from auto-hide to normal view on regular basis and want to simplify it. (Using Win7.) -- edited. For example #include

How to create own control in Windows 7 Aero task preview?

冷暖自知 提交于 2019-11-30 13:22:50
问题 I've got two questions about Windows 7 task preview. In Delphi I'd like to create my own buttons inside the area highlighted in the screenshot below. 1) Is it possible to create my own controls in the task preview window (in Windows 7) like e.g. Winamp can do ? Or it's just some limited multimedia extension ? 2) If it's possible to draw there own buttons where should I start ? Example or Windows API guide-post would be helpful for me. Thanks a lot in advance 回答1: Yes you can, check these

How do I ask Windows for the size of system tray icons?

僤鯓⒐⒋嵵緔 提交于 2019-11-30 12:59:45
I noticed that my app sends icons to the Windows tray with a size of 16x16 pixels--and my Vista PC I've got a doublewide taskbar that appears to show icons at 18x18. The resizing artifacts on my app's icon look awful. How can I ask Windows what size the icons should be? edit: I'm generating the icon dynamically, with a pixel font text overlay. It seems wasteful to generate a bunch of icon sizes dynamically, so it would be nice to avoid building an icon with all the "possible" sizes (not that I'm even sure what those are). GetSystemMetrics(SM_CXSMICON) returns 16--the incorrect value.

How to pin to taskbar using PowerShell

白昼怎懂夜的黑 提交于 2019-11-30 12:40:09
问题 How can I pin some programs to taskbar on Windows 7 using PowerShell? Please explain step-by-step. And How to modify the following code to pin a folder to taskbar? For Example $folder = $shell.Namespace('D:\Work') In this path, example named folder. 回答1: You can invoke a Verb (Pin to Taskbar) using the Shell.Application COM object. Here's some example code: http://gallery.technet.microsoft.com/scriptcenter/b66434f1-4b3f-4a94-8dc3-e406eb30b750 The example is somewhat complicated. Here is a

Delphi form icons are blurry on Windows 7's taskbar (with MainFormOnTaskbar enabled)

自闭症网瘾萝莉.ら 提交于 2019-11-30 10:41:34
问题 We have a Windows desktop application written in Delphi that works fine on Windows 7, except that the icon of the main form looks blurry in Windows' new taskbar. As long as the application has not been started the icon looks fine (i.e. when it's pinned to the taskbar). Once it has been started Windows uses the icon of the main form (instead of the .exe resource icon) and it's blurry (it looks like a 16x16 version of the icon is scaled up). The icon that we use for the .exe and for the main

Triggering taskbar button flash from batch file?

五迷三道 提交于 2019-11-30 08:22:35
Is it possible to trigger Windows' "flash the task bar button X times or until the window comes to the foreground" behavior from a batch file? I'm trying to call the user's attention to a long-running script upon completion. Using an external program to trigger the flashing is fine, as long as it doesn't require an install (i.e. the executable can be bundled with my scripts). Update Here's what I ended up with (a minimalist port of Andreas' Delphi code). I've compiled it under MinGW at it appears to be dependent only on KERNEL32.DLL and USER32.DLL, so should be highly portable. Flashes three

How to create own control in Windows 7 Aero task preview?

人走茶凉 提交于 2019-11-30 07:28:07
I've got two questions about Windows 7 task preview. In Delphi I'd like to create my own buttons inside the area highlighted in the screenshot below. 1) Is it possible to create my own controls in the task preview window (in Windows 7) like e.g. Winamp can do ? Or it's just some limited multimedia extension ? 2) If it's possible to draw there own buttons where should I start ? Example or Windows API guide-post would be helpful for me. Thanks a lot in advance Yes you can, check these components Windows 7 Components from Daniel Wischnewski to see an example. this is a screen-shot from the demo