Hi,
P/Invoke is the answer :)
// Api functions
[DllImport("user 32.dll",EntryPo int="SetForegro undWindow")]
public static extern bool SetForegroundWi ndow(IntPtr hWnd);
[DllImport("user 32.dll")]
public static extern int SetWindowLong( IntPtr window, int index, int
value);
[DllImport("user 32.dll")]
public static extern int GetWindowLong( IntPtr window, int index);
const int GWL_EXSTYLE = -20;
const int WS_EX_TOOLWINDO W = 0x00000080;
const int WS_EX_APPWINDOW = 0x00040000;
int windowStyle = GetWindowLong(H andle, GWL_EXSTYLE);
SetWindowLong(H andle, GWL_EXSTYLE, windowStyle | WS_EX_TOOLWINDO W);
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Jesper" <Je****@discuss ions.microsoft. com> wrote in message
news:FA******** *************** ***********@mic rosoft.com...
Hi,
I've made a program runs in the background, ie not shown on the task bar
but
only with a tray icon next to the watch. If I use Alt+Tab its possible to
select the program from the list of running applications. Is it possible
to
remove the program from the list of running applications?
In the task manager the first tab page lists applications and the second
lists running processes. Is it possible to make mu program a process
instead
of an application?
rgds
Jesper.