>Hi, i'm opening a form by command and i wanna know how can i detect whether the form is already open and active or not?
You can loop through _screen.forms and check each form there for some property (classname, name, caption) that you know your form will have. If you find it, it's already open and you just .show() it; if not, run your command.