Unfortunately the button in the task bar is NOT created for your main form. Delphi creates an other windows for that purpose!
Try something like: ShowWindow(Screen.Handle, SW_SHOW) from your main form's Show event handler. Note: code written in Outlook! > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Robert Meek > Sent: Wednesday, March 22, 2006 1:01 AM > To: [email protected] > Subject: Interface use question > > When you have an application that runs from the tray, do you prefer > NOT to have it also show up on the windows taskbar, or do you like it to > appear in both? I've tried to make this an optional setting however it > doesn't seem possible as the mainform is created one way or the other > before > option settings can be read...unless someone knows of a way to handle this > directly from the dpr? And note, the mainform of my application is used > only for basic setup code, global interface control components, the > trayicon > component, and its custom popup menu code...it never actually becomes > visible nor is it accessed directly in anyway by the user! > > from Robert Meek dba Tangentals Design CCopyright 2006 > > "When I examine myself and my methods of thought, I come to the conclusion > that the gift of Fantasy has meant more to me then my talent for absorbing > positive knowledge!" > Albert Einstein > > > > _______________________________________________ > Delphi mailing list -> [email protected] > http://www.elists.org/mailman/listinfo/delphi _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

