Solved

Problem in RunOnceTrigger for Window Schedular(Urgent)

Posted on 2004-08-25
3
318 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 86

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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
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 …

738 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