Formless application

  • Thread starter Thread starter John Devlon
  • Start date Start date
J

John Devlon

Hi,

This is maybe the most stupid question you will ever read ...

I'm trying to create a small application, when launched, executes just a few
small tasks...
No front-end is needed... How can I create a small application that triggers
a few actions, but doesn't show anything (no forms)

I've tried removing a form and adding a module but that didn't work ...

Thanks
 
John Devlon said:
Hi,

This is maybe the most stupid question you will ever read ...

I'm trying to create a small application, when launched, executes just a
few small tasks...
No front-end is needed... How can I create a small application that
triggers a few actions, but doesn't show anything (no forms)

I've tried removing a form and adding a module but that didn't work ...

Thanks

If you are using VS or VBExpress create a console app. There is no form
just a start where you do what you have to. At the end of processing the
app will close and user will see nothing.

Hope this helps
Lloyd Sheen
 
John Devlon said:
Hi,

This is maybe the most stupid question you will ever read ...

I'm trying to create a small application, when launched, executes
just a few small tasks...
No front-end is needed... How can I create a small application that
triggers a few actions, but doesn't show anything (no forms)

I've tried removing a form and adding a module but that didn't work
...

What did not work? Compiling error? Runtime error? Unexpected behavior?
You removed the form and still the form was shown?
Which actions do you want to trigger? If there is no UI, there is no way to
handle mouse and keyboard input - unless you're trying to create a
keyboard/mouse hook.

What you did should work. In addition, add a Sub Main to the module. Set it
as the startup object in the project's properties.


Armin
 
John said:
Hi,

This is maybe the most stupid question you will ever read ...

I'm trying to create a small application, when launched, executes just a few
small tasks...
No front-end is needed... How can I create a small application that triggers
a few actions, but doesn't show anything (no forms)

I've tried removing a form and adding a module but that didn't work ...

Thanks

You can also create the form application and change the opacity property
so its invisible.
Its a "form" application that will run invisible as if it wasnt a "form"
application.

Miro
 
Thank you all very mutch ...

I've changed the project settings to console app and added the main sub ...
it works great

John
 
Back
Top