Click here to Skip to main content
15,911,531 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questiondataset export to excel file [modified] Pin
Pravin H17-Jul-06 15:26
Pravin H17-Jul-06 15:26 
AnswerRe: dataset export to excel file Pin
Steven J Jowett17-Jul-06 22:43
Steven J Jowett17-Jul-06 22:43 
GeneralRe: dataset export to excel file Pin
Pravin H18-Jul-06 16:14
Pravin H18-Jul-06 16:14 
QuestionHow to implement RegistryPermission Class Pin
changeez17-Jul-06 12:26
changeez17-Jul-06 12:26 
AnswerRe: How to implement RegistryPermission Class Pin
Dave Kreskowiak17-Jul-06 14:14
mveDave Kreskowiak17-Jul-06 14:14 
QuestionVB.NET Timer control Pin
Brent Lamborn17-Jul-06 11:25
Brent Lamborn17-Jul-06 11:25 
AnswerRe: VB.NET Timer control [modified] Pin
Dave Kreskowiak17-Jul-06 12:18
mveDave Kreskowiak17-Jul-06 12:18 
GeneralRe: VB.NET Timer control Pin
Brent Lamborn18-Jul-06 3:52
Brent Lamborn18-Jul-06 3:52 
Thanks Dave, it makes sense to disable the timer while I'm doing work. Here is what I've got:

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick


     If Now.TimeOfDay.Minutes = 0 Then
          'Do work that takes 30 seconds     
     End If

End If


The work only happens twice since it takes 30 seconds. So the ticks sort of build up while I'm doing work and then flood on through after the work is done I suppose. Otherwise the work would run 60 times in the minute at the top of the hour, correct? Now.TimeOfDay.Minutes only gets evaluated later on (after work is done) it seems, and not when the tick actually occurs. That is what it seems like.

At any rate, I will my code change to:

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick

     If Now.TimeOfDay.Minutes = 0 Then
          Timer1.Enabled = False
               'Do work that takes 30 seconds
          Timer1.Enabled = True
     End If

End If







"Half this game is ninety percent mental." - Yogi Berra
If you can read thank a teacher, if you can read in English, thank a Marine.
M y and h don't work so well due to m addiction to caffeine and m in abilit to to set a cup down uprigt.

QuestionInternational character problems in access mdb file Pin
JUNEYT17-Jul-06 8:54
JUNEYT17-Jul-06 8:54 
QuestionProblem using fill method on data adapter Pin
ssbelfast17-Jul-06 8:22
ssbelfast17-Jul-06 8:22 
AnswerRe: Problem using fill method on data adapter [modified] Pin
MrSarek170117-Jul-06 9:09
MrSarek170117-Jul-06 9:09 
GeneralRe: Problem using fill method on data adapter Pin
ssbelfast17-Jul-06 10:14
ssbelfast17-Jul-06 10:14 
GeneralRe: Problem using fill method on data adapter Pin
Kschuler19-Jul-06 8:41
Kschuler19-Jul-06 8:41 
QuestionPictureBox problem vb Pin
_tasleem17-Jul-06 6:32
_tasleem17-Jul-06 6:32 
AnswerRe: PictureBox problem vb Pin
Dave Kreskowiak17-Jul-06 6:50
mveDave Kreskowiak17-Jul-06 6:50 
QuestionMulti Row Display DataGrid View Pin
Madaka17-Jul-06 6:28
Madaka17-Jul-06 6:28 
QuestionPublic Structure and array result [modified] Pin
Kamineko17-Jul-06 3:28
Kamineko17-Jul-06 3:28 
QuestionHow to run as a service Pin
Leelanga17-Jul-06 3:27
Leelanga17-Jul-06 3:27 
AnswerRe: How to run as a service Pin
Tim Carmichael17-Jul-06 7:35
Tim Carmichael17-Jul-06 7:35 
Questionsystem language Pin
OnisH17-Jul-06 2:55
OnisH17-Jul-06 2:55 
QuestionDoes not hit the server side code when called for the second time. readystate is 4 Pin
vikasbinani17-Jul-06 2:45
vikasbinani17-Jul-06 2:45 
Questiontreeview questionvb Pin
_tasleem17-Jul-06 2:24
_tasleem17-Jul-06 2:24 
AnswerRe: treeview questionvb Pin
Werries17-Jul-06 8:29
Werries17-Jul-06 8:29 
GeneralRe: treeview questionvb [modified] Pin
_tasleem17-Jul-06 20:53
_tasleem17-Jul-06 20:53 
GeneralRe: treeview questionvb Pin
Werries18-Jul-06 10:55
Werries18-Jul-06 10:55 

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.