// To hide:
Application.Minimize;
ShowWindow(Application.Handle,SW_HIDE);
//To show:
ShowWindow(Application.Handle,SW_SHOWNORMAL);