[Gambas-user] Main class?!

Mike Keehan mike_keehan at ...679...
Thu Jan 6 21:00:38 CET 2005


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.





More information about the User mailing list