Hi Andy
On mouse move save the mouse position as a property, then invalidate the paint box. In your paint event use something such as:
With aPaintBox do
begin
Canvas.Pen.Style := psDot;
Canvas.Pen.Color := clBlack;
Canvas.MoveTo( fMousePosX, 0 );
Canvas.LineTo( fMousePosX, Height );
end;
Nigel
Xequte Software
www.xequte.com
nigel@xequte.com