Click here to Skip to main content
15,890,512 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Visual basic Pin
RichardBerry8-Nov-06 21:27
RichardBerry8-Nov-06 21:27 
GeneralRe: Visual basic Pin
rajuaj9-Nov-06 1:33
rajuaj9-Nov-06 1:33 
QuestionShowing status Pin
Subjugate8-Nov-06 20:55
Subjugate8-Nov-06 20:55 
AnswerRe: Showing status Pin
Dave Kreskowiak9-Nov-06 16:46
mveDave Kreskowiak9-Nov-06 16:46 
GeneralRe: Showing status Pin
Subjugate9-Nov-06 19:42
Subjugate9-Nov-06 19:42 
GeneralRe: Showing status Pin
Dave Kreskowiak10-Nov-06 2:31
mveDave Kreskowiak10-Nov-06 2:31 
GeneralRe: Showing status Pin
Subjugate10-Nov-06 19:26
Subjugate10-Nov-06 19:26 
GeneralRe: Showing status Pin
Dave Kreskowiak11-Nov-06 4:17
mveDave Kreskowiak11-Nov-06 4:17 
I'm not writing you app for you. But, think about this. Youre code has to update the database with "Done" after tha action is complete, right? Your action is to shutdown the computer, so how are your code going to update the status if it's no longer running? You have to update that status BEFORE you do the action.

In your Timer code, you check the current time against the scheduled time of the job your supposed to run. Once the two match, you call another method to update the job status with something like "Executing". Then you call another method to launch your action. Once the action returns control to this method, it updates the database with "Done".

Now, in the case where you shutdown the machine, there will be no change of updating the database. So, when your app starts up the next time, it has to scan the database for any status of "Executing" and reset it to "Done".


Dave Kreskowiak
Microsoft MVP - Visual Basic


QuestionFile Locked By Another User Pin
RichardBerry8-Nov-06 19:20
RichardBerry8-Nov-06 19:20 
AnswerRe: File Locked By Another User Pin
RichardBerry9-Nov-06 21:26
RichardBerry9-Nov-06 21:26 
QuestionStack Overflow at line 101 Pin
JayPrakash Kulkarni8-Nov-06 19:15
JayPrakash Kulkarni8-Nov-06 19:15 
AnswerRe: Stack Overflow at line 101 Pin
Christian Graus8-Nov-06 20:11
protectorChristian Graus8-Nov-06 20:11 
GeneralRe: Stack Overflow at line 101 Pin
JayPrakash Kulkarni8-Nov-06 20:19
JayPrakash Kulkarni8-Nov-06 20:19 
GeneralRe: Stack Overflow at line 101 Pin
Christian Graus8-Nov-06 20:54
protectorChristian Graus8-Nov-06 20:54 
QuestionVB.Net Pin
varmag8-Nov-06 17:47
varmag8-Nov-06 17:47 
AnswerRe: VB.Net Pin
Dave Kreskowiak9-Nov-06 16:55
mveDave Kreskowiak9-Nov-06 16:55 
GeneralRe: VB.Net Pin
varmag9-Nov-06 17:44
varmag9-Nov-06 17:44 
GeneralRe: VB.Net Pin
Dave Kreskowiak10-Nov-06 2:29
mveDave Kreskowiak10-Nov-06 2:29 
AnswerRe: how to pass a value to SP sing adodc? VB6 Pin
Coding C#9-Nov-06 2:57
Coding C#9-Nov-06 2:57 
QuestionNo value given for one or more required parameters... Pin
Subjugate8-Nov-06 15:31
Subjugate8-Nov-06 15:31 
AnswerRe: No value given for one or more required parameters... Pin
Christian Graus8-Nov-06 15:32
protectorChristian Graus8-Nov-06 15:32 
GeneralRe: No value given for one or more required parameters... Pin
Subjugate8-Nov-06 15:47
Subjugate8-Nov-06 15:47 
GeneralRe: No value given for one or more required parameters... Pin
Christian Graus8-Nov-06 15:59
protectorChristian Graus8-Nov-06 15:59 
GeneralRe: No value given for one or more required parameters... Pin
Subjugate8-Nov-06 19:47
Subjugate8-Nov-06 19:47 
GeneralRe: No value given for one or more required parameters... Pin
Christian Graus8-Nov-06 20:09
protectorChristian Graus8-Nov-06 20:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.