> I'm trying to control the showintask bar of an external program to false,
> since it is not a form how can I achieve this?
Back in NT4, I wanted to do this with the Services applet. This is the code I used:
' Tweak style settings of Services applet so that it
' shows up on taskbar, and uses the default Windows
' flag as its icon.
If hWnd Then
If StyleExFlipBit(hWnd, WS_EX_APPWINDOW, True, False) Then
Call StyleExFlipBit(hWnd, WS_EX_DLGMODALFRAME, False, False)
Call WindowShow(hWnd, SW_HIDE)
Call Sleep(0)
Call WindowShow(hWnd, SW_NORMAL)
End If
End If
You can download the full example here: http://vb.mvps.org/samples/FormBdr

Signature
.NET: It's About Trust!
http://vfred.mvps.org
Ferio - 25 Jun 2008 23:34 GMT
>> I'm trying to control the showintask bar of an external program to false,
>> since it is not a form how can I achieve this?
[quoted text clipped - 14 lines]
>
>You can download the full example here: http://vb.mvps.org/samples/FormBdr
I passed the handle to this code and I can see that the external application
flicker at the task bar each time I pass the handle to it. I tried to delete
the line Call WindowShow(hWnd, SW_NORMAL) it seems to be hidden from the task
bar but even the window disappear. I want to window to still show but hidden
from the taskbar. Is there something I missed?
Thank you!
Karl E. Peterson - 26 Jun 2008 00:13 GMT
>>> I'm trying to control the showintask bar of an external program to false,
>>> since it is not a form how can I achieve this?
[quoted text clipped - 21 lines]
> bar but even the window disappear. I want to window to still show but hidden
> from the taskbar. Is there something I missed?
Oh. No. Something *I* missed. That code forces a window *into* the taskbar.
Basically, you'd do just the opposite. See how the ShowInTaskbar property is
implemented in the included CFormBorder class.

Signature
.NET: It's About Trust!
http://vfred.mvps.org