Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Enterprise Development / June 2008



Tip: Looking for answers? Try searching our database.

ShowinTaskBar for external application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ferio - 25 Jun 2008 20:07 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?
Karl E. Peterson - 25 Jun 2008 20:16 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?

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

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.