[Gambas-user] Cancel the closing of a WebForm
Mayost Sharon
sharon at 455.co.il
Tue Dec 1 09:30:08 CET 2020
On Mon, 30 Nov 2020 21:27:40 +0100, Benoît Minisini wrote
> Le 30/11/2020 à 21:20, Mayost Sharon a écrit :
> > Hello
> >
> > How to prevent a window WebForm2 closing by clicking the X on the left side of the WebForm2
> >
> >
> > In WebForm1 When I press a button I display WebForm2 as follows
> >
> > Export
> >
> >
> > Public Sub WebButton1_Click()
> >
> > Webform2.ShowModal(Webform1)
> >
> > End
> >
> >
> > How to cancel close WebForm2 by the X on the side
> >
> > Thanks
> >
>
> You have to cancel the Close event with STOP EVENT.
>
> Regards,
>
> --
> Benoît Minisini
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
I tried, inside WebForm2 at the event Close
Public Sub WebForm_Close()
Stop Event
End
It does not work, still the WebForm2 closes when I press the X button
Thanks
More information about the User
mailing list