taskbar

How to make a WPF Window to blink on the taskbar?

♀尐吖头ヾ 提交于 2019-12-18 10:27:18
问题 A given moment my WPF app needs user attention. I know it is possible to make the Windows 7 taskbar icon to flash with a yellow color. I tried so far: Window.Activate Attempts to bring the window to the foreground and activates it. Window.Focus Attempts to set focus to this element. Any suggestions? 回答1: Here's one possible solution: http://www.jarloo.com/flashing-a-wpf-window/ In the code sample, two extensions methods are created for the Window class: FlashWindow and StopFlashingWindow:

Launch4j, NSIS, and duplicate pinned Windows 7 taskbar icons

烂漫一生 提交于 2019-12-18 05:01:35
问题 I'm having a problem wherein when I pin a taskbar icon in Windows 7 for my application, clicking the icon opens up a separate (duplicate) icon for the program instead of keeping it grouped with the shortcut used to call it. The application itself is a .jar file that's been wrapped into an .exe using Launch4j. That would explain why the icon is getting duplicated -- Launch4j is calling a separate process of javaw.exe, and it looks like the AppModelUserID gets confused when you start doing

Android : Floating Clickable Icon over Screen?

筅森魡賤 提交于 2019-12-17 17:34:51
问题 There's an Android Application called Smart Taskbar that manages to Pin a small SemiTransparent Icon over the screen...The icon remains visible over ALL the activites (including the home screen). The Icon is Clickable (/Touchable), and it does popopen a Small Popup window which the user can interact with. I'm very interested in how this is done? I think it's something to with PopupWindow . Any ideas? Thanks in Advance. 回答1: I recently experimented with this. See this question: Creating a

Change pinned taskbar icon (windows 7)

柔情痞子 提交于 2019-12-17 07:13:20
问题 I wan't to customize the icon displayed within the windows 7 taskbar. When my app is running, I can do it by changing main window icon but, when the app is pinned, the exe's icon is displayed. How can I set the taskbar icon for my app to an icon different from the one embedded within the exe ? Not tried, this solution may work but looks dirty. Edit : Our app is compiled once but depending on config file, features are enabled or not so it's a product or another. We do not want to compile one

Change pinned taskbar icon (windows 7)

我与影子孤独终老i 提交于 2019-12-17 07:12:51
问题 I wan't to customize the icon displayed within the windows 7 taskbar. When my app is running, I can do it by changing main window icon but, when the app is pinned, the exe's icon is displayed. How can I set the taskbar icon for my app to an icon different from the one embedded within the exe ? Not tried, this solution may work but looks dirty. Edit : Our app is compiled once but depending on config file, features are enabled or not so it's a product or another. We do not want to compile one

How to hide a JFrame in system tray of taskbar

为君一笑 提交于 2019-12-17 04:54:56
问题 I'd created a JFrame and want to hide in taskbar (in windows not visible right in the bottom but hidden in the tray menu items ). Can anybody tell me how to do that? Did I need to make some changes in System settings of windows ? for example, you might have seen some download managers , team viewer , 4shared desktop , etc. are hide in taskbar's tray menu items. 回答1: import java.awt.*; import java.awt.event.*; import javax.swing.JFrame; import javax.swing.UIManager; /** * * @author Mohammad

How to hide a JFrame in system tray of taskbar

家住魔仙堡 提交于 2019-12-17 04:54:18
问题 I'd created a JFrame and want to hide in taskbar (in windows not visible right in the bottom but hidden in the tray menu items ). Can anybody tell me how to do that? Did I need to make some changes in System settings of windows ? for example, you might have seen some download managers , team viewer , 4shared desktop , etc. are hide in taskbar's tray menu items. 回答1: import java.awt.*; import java.awt.event.*; import javax.swing.JFrame; import javax.swing.UIManager; /** * * @author Mohammad

Ensure WPF Taskbar Window Preview is actualized

☆樱花仙子☆ 提交于 2019-12-14 03:39:50
问题 How can I ensure that the hower preview of my WPF application (.net 4) is refreshed when the user places the mouse over the taskbar icon. I have an app that visualizes some status values. If the app window is minimized and the user hovers over the taskbar button, the preview window that is shown shows the last view of the window at which the window was active. However I would like to have an actualized view. Is there a possiblity to achieve that? 回答1: I believe you'd need to customize the

How to Detect Right Click on the Taskbar

情到浓时终转凉″ 提交于 2019-12-13 16:32:03
问题 I've got a Windows Forms application in C# that starts off with a loading dialog. As expected, a button for the app shows up in the Windows taskbar. I would like to detect right-clicks that might be done to that button. Ultimately, I hope to disable the right-click or simply have the loading dialog regain focus. I've seen that some people use custom libraries and packages (interop, for example) to achieve some Win32 functionality, but I'd personally like to avoid this. Is it impossible to do

Which Windows process is displaying a given taskbar system tray icon?

£可爱£侵袭症+ 提交于 2019-12-13 05:04:05
问题 How do I find which Windows process is displaying a given taskbar system tray icon? 回答1: Shell_NotifyIcon works by sending a special WM_COPYDATA message to the taskbar, if you inject into explorer and subclass the taskbar you could catch this message, you could then get the process id by calling GetWindowThreadProcessId on COPYDATAstruct.NOTIFYICONDATA.hwnd. ...and of course, this is a hack and relies on undocumented information that could change at any time! 回答2: I've just realised that in