Re: Running a scheduled task from VB

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Jim Carlock (anonymous_at_127.0.0.1)
Date: 06/03/04


Date: Wed, 2 Jun 2004 22:13:55 -0400

Add a timer to the app. The timer can run code within the
Timer1_Timer() sub to check the system date and if it's
time to execute a procedure, just call the procedure.

Hope that helps.

-- 
Jim Carlock
http://www.microcosmotalk.com/
Post replies to the newsgroup.
"Andre" <anonymous@discussions.microsoft.com> wrote in message news:4EF09F57-E15C-437D-AEB8-3243441F75BE@microsoft.com...
That is great.  But I still dont know how to run a scheduled task from VB.


Relevant Pages

  • Re: msflexgrid with ctrl-pgup & ctrl-pgdn
    ... It is still possible for your VB app to ... Timer event, which occurs about ten milliseconds after the key was ... Private Sub Form_Unload ... Private Declare Function SetWindowsHookEx Lib "user32" _ ...
    (comp.lang.basic.visual.misc)
  • Re: Application crashes using .NET 2.0 framework because of permis
    ... execute a line of code. ... framework if the user has permissions and since they don't, ... thrown and the app blows up. ... > Public Shared Sub Run ...
    (microsoft.public.dotnet.languages.vb)
  • RE: Application Foreground "Timeout"
    ... "I'm sure the app is still running because pressing a programmed HotKey ... Me.BringToFront in my new timer routine. ... Private time As New Timer ... End Sub ...
    (microsoft.public.dotnet.framework.compactframework)
  • windows (vb.net 1.1) service - threading issue
    ... fires, it attempts to execute Timer1.Stopbut takes a long time to ... new thread seems to try and also tries to execute Timer1.Stop. ... Protected Overrides Sub OnStop() ... ' stop the timer while the process runs ...
    (microsoft.public.dotnet.languages.vb)
  • System.Timers.Timer.Elapsed event not firing
    ... countdown timer modal dialog. ... Public Sub New ... 'This call is required by the Windows Form Designer. ... Private Sub butCancel_Click(ByVal sender As System.Object, ...
    (microsoft.public.dotnet.languages.vb)