NEWBIE running my app without a form?

  • Thread starter Thread starter Carol Chisholm
  • Start date Start date
C

Carol Chisholm

I'm trying to get an app I can run from Task Scheduler.

Can I run it without a form? If so how?
 
Carol,

Can you not browse to the exe?

A program without a form, I just made this sample for somebody else?
\\\
Public Class test
Public Shared Sub main()
Dim OFD As New OpenFileDialog
OFD.ShowDialog()
End Sub
End Class
///
This is a complete program

Is that what you mean?

Cor
 
Carol,

I saw you did this question earlier and answering now top down, please stay
in the original thread and ask this as a follow up question next time to
Peter, this cost only time to a lot of persons.

Thanks in advance.

Cor
 
Carol Chisholm said:
I'm trying to get an app I can run from Task Scheduler.

Can I run it without a form? If so how?

You can add a custom 'Sub Main' and select it as startup object in the
project properties:

\\\
Public Module Program
Public Sub Main()

' Entry point...
End Sub
End Module
///

.... or you can change the project's type to "Console Application" in the
project properties. Notice that this would show a console window when the
application is started.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top