Thanks Rob. Mike
Override your form's CreateWnd method and add this line: SendMessage(Handle, wm_ChangeUIState, uis_Initialize, 0); See MSDN for details on that message. I think the UI state of a program is inherited, to some degree, from the program that started it. If I start my test program by pressing F9, then the focus indicator is present. If I start it by pressing the "play" button on the tool bar, then the focus indicator is invisible. Likewise, if I start the program by double-clicking it in Windows Explorer, the focus is hidden, but if I start it by selecting it and pressing Enter, the indicator is there. -- Rob _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

