Solved

Problem in RunOnceTrigger for Window Schedular(Urgent)

Posted on 2004-08-25
3
289 Views
Last Modified: 2008-03-03
Hi,
i am having problem in
        task1.Triggers.Add(New RunOnceTrigger(DateTime.Now + TimeSpan.FromMinutes(1.0)))
in VB.NET it is not allowing me to use ' + ',& if i specify only  'DateTime.Now' then the exe is not executed at that particular time.
Plz tell me what to do....Its very urgent.
Waiting for positive respones.

Regards,
Trupti
0
Comment
Question by:truptiph
3 Comments
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 20 total points
ID: 11899609
If you are trying to get a DateTime that is 1 minute out from the current time it is simply this:

    task1.Triggers.Add(New RunOnceTrigger(DateTime.Now().AddMinutes(1)))

Idle_Mind
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
A short film showing how OnPage and Connectwise integration works.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now