[Gambas-user] Cancel the closing of a WebForm
Mayost Sharon
sharon at 455.co.il
Tue Dec 1 16:39:50 CET 2020
On Tue, 1 Dec 2020 14:35:01 +0000, Bruce Steers wrote
> You need to use the name of the object not the object type.
> Try this..
>
> Public Sub WebForm2_Close()
> :)
>
> On Tue, 1 Dec 2020 at 08:31, Mayost Sharon <sharon at 455.co.il> wrote:
>
> > 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
> >
> > ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
> >
I checked and also does not work
Regarding the event it gives me WebForm_Close when I right click on the form and there select events and then the IDE creates the event itself
Thanks
More information about the User
mailing list