[Gambas-user] Closing a Message!

Benoît Minisini g4mba5 at gmail.com
Thu Dec 10 16:07:03 CET 2020

Le 10/12/2020 à 15:33, Charlie Ogier a écrit :
> Hi Guys,
> This looks a little dangerous to me, is this an issue?
> Charlie
> Public Sub Form_Open()
>    ''Run this and close the Message by clicking the "X", NOT Yes or No.
>    If Message.Question("Delete hard drive?", "No", "Yes") = 2 Then Print 
> "Deleting hard drive"
> End
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----

The last button is always supposed to be the cancel action, so it is 
returned by default if you close the message box.

Maybe I should make the window close button inactive for message box, to 
avoid this ambiguity?


Benoît Minisini

More information about the User mailing list