This is a great site!
Thanks in advance,
CW
Are you talking about windows in VB or other apps that are running?
In VB it will be the Form that has focus that is active. Keith
http://www.martin2k.co.uk/forums/index.php?act=idx