Hi,
i'm having problems closing modeless form. I have a form A, that is modal and my subform B, that is modal too, but because i need to open further windows (C) programatically, i set it as windowtype = 0 (in order to be able to open child forms (C) from this form (B)) in its init event. According to what i want to achieve, i open further forms C (modal) and when i want to close form C, i want to close my modeless form (B) too, so i can return to my mainform (A) without user intervention needed. I have a command button on my modeless form (B) that releases the form, so i do a thisform.commandx.click in order to close the form (B), but the form (B) is not closed and it remains inactive, while my main form (A) receives focus. In order to close the form B, i need to close form A and only then i can close the form B. GetWindow and DestroyWindow isn't working so i'm obviously missing something.
Any help would be appreciated!
Andrej
i'm having problems closing modeless form. I have a form A, that is modal and my subform B, that is modal too, but because i need to open further windows (C) programatically, i set it as windowtype = 0 (in order to be able to open child forms (C) from this form (B)) in its init event. According to what i want to achieve, i open further forms C (modal) and when i want to close form C, i want to close my modeless form (B) too, so i can return to my mainform (A) without user intervention needed. I have a command button on my modeless form (B) that releases the form, so i do a thisform.commandx.click in order to close the form (B), but the form (B) is not closed and it remains inactive, while my main form (A) receives focus. In order to close the form B, i need to close form A and only then i can close the form B. GetWindow and DestroyWindow isn't working so i'm obviously missing something.
Any help would be appreciated!
Andrej