oForm = Createobject("myForm") oForm.Show() Define Class myForm As Form DataSession = 2 Height = 400 Width = 600 minbutton=.f. closable=.f. minbutton=.f. autocenter=.t. windowtype=0 or 1 && It can't be bigger then 1 Add Object cmdMyCmdBtn AS CommandButton With ; Caption = '',; && Here is one of Yours errors Cancel = .T.,; Left = 125 ,; Top = 210 , ; Height = 25 PROCEDURE cmdMyCmdBtn.Click && The event/method of an object coantaned by the form must be preceded with its name thisform.saveAs("TestForm") thisform.release && this does not show in the click prop. Enddefine