[Gambas-user] TryIcon issues

Jorge Carrión shordi at ...626...
Sat May 6 19:57:00 CEST 2017


Thanks Charlie it works... almost.
I used Quit command because in my project I have a watch class object, from
gb.inotify component, and a project doesn't end if there is a watch active.
I change de code to:

  mywachobject.Pause
  miwachobject = Null
  TrayIcon1.visible = False
  Me.Close

And now it closes perfect.

Thanks again.

Best regards


2017-05-06 16:44 GMT+02:00 Charlie <charlie at ...2793...>:

> Try the following code: -
> *Public Sub form_Open()
>   TrayIcon1.Visible = True
> End
> Public Sub Menu4_Click()
>   TrayIcon1.Visible = False
>   Me.Close
> End*
> The use of *Quit* is not recommended see
> http://gambaswiki.org/wiki/lang/quit <http://gambaswiki.org/wiki/lang/quit
> >
> I used *gb.gui* to get rid of the last error
>
>
>
> -----
> Check out www.gambas.one
> --
> View this message in context: http://gambas.8142.n7.nabble.
> com/TryIcon-issues-tp58908p58915.html
> Sent from the gambas-user mailing list archive at Nabble.com.
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list