Page 1 of 1

[Solved] Begin method with module

Posted: Friday 20th March 2020 8:53am
by Philippe734
Hello,
I wish to start my application with a module and not with form. When I set the class to start to my module, the I get the error "begin method not found" (in my language: french). See the picture bellow. How can start a project with a module and not with a form?
http://i.imgur.com/PcsP0vA.png
http://i.imgur.com/I4DAC9T.png

Re: Start with module

Posted: Friday 20th March 2020 1:31pm
by cogier
Try adding a 'Main' routine in the Module, it works for me.
Essayez d'ajouter une routine "Main" dans le module, ça marche pour moi.
Public Sub Main()

  
End

Re: Start with module

Posted: Saturday 21st March 2020 10:52am
by Philippe734
cogier wrote: Friday 20th March 2020 1:31pm Try adding a 'Main' routine in the Module, it works for me.
It works, thanks.