I only looked at the code - haven't tried, but it may be what you need
message #
1367614>>>Is there a way to limit form to be moved above some point?
>>>Like when you dock a toolbar on top of the _screen and you can't move the form below it.
>>>I tried to put in Moved event this.Top = something but if tje use holds the mouse button and continue drag the mouse there is a very ugly flickering.
>>>TIA
>>
>>
>>* Form.Moved()
>>DoDefault()
>>if This.Left < 0
>> This.Left = 0
>>endif
>>
>>
>>The result looks weird, but the user can't move the form beyond the left edge, in this case.
>
>Yep,I have something like this and I got what I want, but the _screen flickering very ugly.
>I tried with _screen.LockScreen = .f. and with LockWindowUpdate() API w/o any luck -(
If it's not broken, fix it until it is.
My Blog