?
Solved

Problem in RunOnceTrigger for Window Schedular(Urgent)

Posted on 2004-08-25
3
Medium Priority
?
326 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 80 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month11 days, 5 hours left to enroll

770 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