delphi - Best way to Hide and Restore an Application -


i hide entire application , later restore state (kinda minimize tray). includes opened forms , included modal form. should hide each form's taskbar visibility. can hide mainform, other forms , modal form? easiest way hide dynamically forms , restore them state how were?

call application.minimize , application.restore perform these actions.

to remove form taskbar, hide it. assuming have application.mainformontaskbar set true, , main form associated taskbar, can use application.mainform.visible := false. reverse when call application.restore.

so, in summary, go dark:

application.minimize; application.mainform.visible := false; 

and reappear:

application.mainform.visible := true; application.restore; 

if have more 1 form associated taskbar, you'd need hide forms remove button task bar.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

php - MySQLi multi_query results for later use -