If a modal window or dialog is active, all other windows or dialogs are passiv.
' Gambas class file
PUBLIC SUB Button1_Click()
DIM hNewForm AS Fnew
hNewForm = NEW Fnew
'hNewForm.ShowModal()
'you can make the new Form modal here or in the
'constructor of the class Fnew
END