When a form is maximized, the windowstate property of the form is equal to vbMaximized.

If frm.WindowState = vbMaximized Then

'...... FlashWindow procedure ......

End If

[Edited by Shafee on 09-11-2000 at 02:06 PM]