Running your program from a class and not a form?

Hi

I have a multiple forms program, but I would like to use a class as my Main program than using another form. Is is possible to do that? or Is there a way I can run my Main program without using a form?

Basically I want an invisible Main program.

Thanks?

Comments

  • : Hi
    :
    : I have a multiple forms program, but I would like to use a class as
    : my Main program than using another form. Is is possible to do that?
    : or Is there a way I can run my Main program without using a form?
    :
    : Basically I want an invisible Main program.
    :
    : Thanks?

    The way I see it, you can write the function main() where ever you like, just make sure there's only one function, and after that go to the project properties (right-click on the project), and on the Application page select the "Startup object" as the class that holds the main() function.

    Is that what you're asking?

    Danny
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion