Newbie: Using form load or somesuch to automatically run code

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

Carol Chisholm

I'd like my VB.NET app to run from the Task Scheduler.

So I need to eliminate the "click on the button" bit of launching it.

Has anyone an example or a reference to how to do this?
 
You can call different routines from your form load

for example:

Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs)
_ Handles MyBase.Load
call show_me_the_money
End Sub

private sub show_me_the_money
msgbox("The money")
end sub

hth Peter
 

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