Differences

This shows you the differences between two versions of the page.

mirnshi:hide_delphi_application_from_taskbar [2009/01/31 23:01] (current)
mirnshi created
Line 1: Line 1:
 +====== hide delphi application from taskbar ======
 +
 +I am newbie of dephi. I spent a few days to hide the main form from the taskbar. I wrote a application which creates security tunnel and then runs a special program, such as mstsc(MS remote desktop) to connect the remote server via this tunnel.
 +\\
 +\\
 +I tried several ways, none can help me. Even many guys said that  <hi>application.showmainform</hi> shoud be added to the project, and <hi>application.restore</hi> to onshow. It's weird that the main form was hidden at the beginning, but it's show again after the second program was executed.
 +\\
 +\\
 +At last, one way is worked for me, adding timer to hide the main form after all of initializationes have been done, and the next line to FormCreate
 +  SetWindowLong(Application.Handle,GWL_EXSTYLE,WS_EX_TOOLWINDOW)
 +
 +
 +
 +{{tag>}}
 +
 +~~LINKBACK~~
 +~~DISCUSSION~~
 
mirnshi/hide_delphi_application_from_taskbar.txt · Last modified: 2009/01/31 23:01 by mirnshi
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki