Re: Changing Appearance of a Minimized Application

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Robert Jordan (robertj_at_gmx.net)
Date: 08/25/04


Date: Wed, 25 Aug 2004 21:37:51 +0200

Hi Greg,

> I have an ordering application that monitors orders coming in for approval.
> Users like to leave it minimized and check it occasionally to see if a new
> order has arrived. They have asked me to have the minimized application
> change its task bar appearance or icon.
>
> Is this doable?
>
> Any help is greatly appreciated.
>

See Win32 API - FlashWindow.

C# declaration:

[DllImport("user32.dll")]
public static extern bool FlashWindow(IntPtr hWnd, bool bInvert);

Rob



Relevant Pages

  • Re: using a VC++ DLL function in a C# ASP.NET webservice
    ... | public static extern bool VerifyAccountNumber(string ... tell the marshaler that the value returned is not an int but a real bool. ... So, if your C function returns a BOOL, the first function declaration ...
    (microsoft.public.dotnet.framework.interop)
  • Re: GPRS Connection status [PPC 2003]
    ... >> is in use by another connection ... >>> public static extern bool EstablishSynchronousGPRSConnection(ref ... >> phConnection, ref uint pdwStatus, ref bool pinAvailable); ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: pinvoke SetCommState Windows CE 5.0
    ... public const uint GENERIC_WRITE = 0x40000000; ... int nNumberOfBytesToWrite, ... public static extern Boolean ReadFile(int hFile, ... public static extern bool CloseHandle; ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: pinvoke SetCommState Windows CE 5.0
    ... public const uint GENERIC_WRITE = 0x40000000; ... int nNumberOfBytesToWrite, ... public static extern Boolean ReadFile(int hFile, ... public static extern bool CloseHandle; ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: How to implement listener for F7 key
    ... public static extern bool UnregisterHotKey(IntPtr hWnd, int hotkeyId); ... DLL should use the GlobalAddAtom function to obtain the hot-key ...
    (microsoft.public.dotnet.languages.csharp)