>>Hi David,
>>
>>>
>>>Of course, you would then have to deal with users who drag the docked window out of its position and then have no idea what "went wrong." Maybe some smart person will figure out a way to disallow or override that once you have them docked the way you specify programmatically.
>>>
>>
>>For Toolbars, I would set Movable = .F., but that doesn't seem to work with dockable forms.
>
>I think we could use the beforedock event in VFP9 to prevent undocking.
No, we can't. Here's what help says about this (under BeforeDock method):
"Returning .F. (False) from code in the event or adding the NODEFAULT command does not prevent docking."