Filax #1 Hum i think that you can check the window title ? with :If MyWindow.Caption="MyWindow01" and MyWindow.Disable=False thenblablaendifIt's an idea :)