User Tools

Site Tools


mirnshi:hide_delphi_application_from_taskbar
no way to compare when less than two revisions

Differences

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


mirnshi:hide_delphi_application_from_taskbar [2009/01/31 15:01] (current) – created mirnshi
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 15:01 by mirnshi