Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

gambas2: how do I create a main() routine as a startup object?

0 views
Skip to first unread message

Mark Hobley

unread,
Jun 14, 2009, 6:08:03 PM6/14/09
to
I am creating a graphical application using gambas2. I would like my
application to start running from a main() routine, rather than from a form.
How do I set this?

Mark.

--
Mark Hobley
Linux User: #370818 http://markhobley.yi.org/

Mark Hobley

unread,
Jun 15, 2009, 11:08:02 AM6/15/09
to
Mark Hobley <markh...@hotpop.donottypethisbit.com> wrote:
> I am creating a graphical application using gambas2. I would like my
> application to start running from a main() routine, rather than from a form.
> How do I set this?

I managed to solve this as follows:

1. Create a new module called MMain
2. In the MMain module, create a new public sub called Main
3. Right click the MMain module, then select Startup class from the context
menu

Cheers,

0 new messages