[Gambas-user] Keeping track of opened form instances

Benoît Minisini gambas at ...1...
Thu Jul 4 11:33:22 CEST 2013


Le 04/07/2013 10:14, Tobias Boege a écrit :
> On Thu, 04 Jul 2013, Bruce wrote:
>> Hi folks,
>>
>> I have a form ("FSummary") that basically opens a variable number of
>> other forms. This action is controlled by the user.
>>
>> Each other form is an instance of a single form/class, say "FDetail".
>> Each and any of these could be closed by the user at any time.  Also,
>> when the FSummary form is closed, any remaining FDetail forms need to be
>> automatically closed.
>>

You have to set Application.MainWindow with FSummary. When the 
application main window is closed, all opened windows are closed 
automatically.

-- 
Benoît Minisini




More information about the User mailing list