The drawing function was in the OnTimer event But i managed to solve this problem myself - I just changed the main forms DragKind to dkDock Thanks anyway