>Hi Cetin
>
>Thanks for reply.
>
>I added clear events as the last statment of the close button
>and next statement of do form myform is read events.
>
>This works fine.
>But in my application there is a provision to hide the form in the tray (I am using systray library functions to do this) Now after adding read events. This works but when we run the exe it displays form with a background window
>with caption Microsoft Visual Foxpro.
>and File Edit Window Help as menu item.
>
>Basically the form runs in this window.
>
>My question is when I hide my form still this window is open. Which I don't want.
>
>How can I create a form which is only running on the desktop when run as an executable and when I hide the form and put it into systray it should make the dekstop clean like other progs. which are there in system tray.
>
>Can I do that ?
>
>Pl. Help.
>
>Thanks in Advance
>
>Ashish Patel
Ashish,
Use an SDI form with no caption (ShowWindow=2,TitleBar=0) and have a config.fpw file with line 'Screen=off'
Cetin