I created 2 custom Dialogs and used nearly identical code for both of them but for some reason only the first one i created works. WaitOnDialog for the second one only returns -1.First I had a problem because they were both created with a resource id...