Here's one way that works; define the WIndow prior to running the Form and give it an object reference;
DEFINE WINDOW WindowName1;
FROM 10, 20 TO 35, 100;
IN SCREEN;
NAME HelloWindow;
CLOSE ZOOM
HelloWindow.AlwaysonTop = .T.
Then, in the Form's LOAD event:
HelloWindow.Show()
Then, Release it whenever you desire...
HTH,
-Irv.
>I need to display a message to the user when they first start up a form to tell them to wait and that the program is selecting data. I tried to do it with an existing window called 'Activity' that was already defined early on in the main program. The window is centered on the screen and I normally just do ?'Selecting data - Please wait' so they know that the program is working after they select it from a menu. Then when I'm done selecting I simply close the window. But for some reason I don't understand the code is being executed in the Form's Load Event but nothing is displayed. I changed it to show it using the WAIT 'Selecting data - Please wait...' WINDOW NOWAIT command. That works. But I prefer to see my Activity window centered on the screen instead of the WAIT WINDOW. Is there some reason that I can't activate another window from within a form's load event? Any help would be greatly appreciated.
>
>Jim White