...For example, if you have a button on the form which opens another modeless form, and you want to prevent data entry in the form while the other form is running, in the click event of the form you can say
* Click
thisform.enabled = .F.
DO form anotherForm
*...
thisform.enabled = .T.
Regards...