How to open a modal Form

If a modal window or dialog is active, all other windows or dialogs are passiv.

form.png newform.png

' 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

-- JochenGeorges - 28 Dec 2004