[Gambas-user] Main class?!

Bodard Fabien gambasfr at ...11...
Thu Jan 6 21:33:16 CET 2005


Le jeudi 6 Janvier 2005 21:00, Mike Keehan a écrit :
> Design wrote:
> > Hello,
> >
> > When i open a new project and create a new form i cant finde the main
> > class like this
> >
> > STATIC PUBLIC SUB Main()
> >   hForm AS Fmain
> >   hForm = NEW Fmain
> >   hForm.show
> > END
> >
> > When i enter this in the  form code window(class) i get a error. Where
> > is this main clas predefined ?
>
> Hi,
>
> Right click on the form in the Project Explorer window, and click the
>   'Startup Class' option.
>
> Form_Show() is one of the events which will run when the form is run,
> so you can put start up code in there if necessary.
>
> Mike.
>
>

in order you have :

the constructor of the class (initialize):

PUBLIC SUB _New()
END

then (loading):

PUBLIC SUB Form_Open()
END

and (when the fom is put visible):

PUBLIC SUB Form_Show()
END



Try a right click on the form and had a look to the events.

Fabien


> -----------------------------------------
> -------------- 
> The SF.Net email is sponsored by: Beat the post-holiday blues
> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
> _______________________________________________
> 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