Releasecapture; {Not quite sure what this means, but}
{You may have problems if it is not used}
Form1.Perform(WM_SYSCOMMAND, $F012, 0);
This assumes the form is named Form1 .
The code could also be applied to any other control, such as a button
or panel, e.g.
Releasecapture;
Panel1.Perform(WM_SYSCOMMAND, $F012, 0);
"Jon Nichols" <jonnichols@hotmail.com>