>How did you add buttons to the form? Why do you base buttons on commandgroup and not on commandbutton?
>
>i just dragged the mybuttons class i created based on commandgroup. i used a commandgroup instead of just commandbuttons since im putting 12 buttons in my form. i assumed it is a lot easier to drag all 12 buttons at once using a commandgroup. and i don't know how to do this using a commandbutton.
>
>what should i do?
You're missing commandgroup reference
Thisform.< commandgroupname >.cmdClose.visible=.T.
--sb--