[Gambas-user] Me.Persistent

Benoît Minisini gambas at ...1...
Sun Oct 30 22:32:02 CET 2011


Le 30/10/2011 22:25, tobias a écrit :
> hi list,
>
> i thought that the following code:
>
> Public Sub Form_Open()
>     Me.Persistent = True
> End
>
> ensures that the form (startup class) is only hidden but the program
> stays alive (i have a tray icon)
> but if i close the form, the programs ends.
>
> i had the same thing in gambas2 and if i remember correctly it worked
> there...
> have there been any changes?
>
> regards,
> tobi
>

The program should stop when all windows are closed, not destroyed. So 
the "persistent" flag has no effect in that test.

Regards,

-- 
Benoît Minisini




More information about the User mailing list