Create a procedure under the private headings of your form code with the other procedures like this
procedure FormMove(var Msg: TMessage); message WM_EXITSIZEMOVE;
and then enter the procdure code as you would normally, like this.
procedure TForm1.FormMove(var msg: TMessage);
begin
ShowMessage('Hey look, my forms moving');
end; Arte Et Labore