Thanks Garrett for your suggestion. Can I use Visual Command Buttons stored in vcx using createobject() in the same way?
>>I have a requirement by a user who want push buttons on the Desktop area of the VFP to
>>start forms. In short use the VFP Desktop as a toolbar.
>
>Personally, I would use a Top-Level form (Form.ShowWindow = 2) for this, and then set all the other forms to run In Top-Level Form (Form.ShowWindow = 1).
>
>However, there's nothing stopping you from doing something like the following.
>
_SCREEN.AddObject("cmdQuit", "quitButton")
>_SCREEN.cmdQuit.Visible = .T.
>
>DEFINE CLASS quitButton as Cmmandbutton
> PROCEDURE click
> MESSAGEBOX("Quitting")
> *!* QUIT
> ENDPROC
>ENDDEFINE