Click here to Skip to main content
15,900,511 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: what is this? Pin
Colin Angus Mackay18-Dec-07 13:03
Colin Angus Mackay18-Dec-07 13:03 
GeneralDock/float tab pages Pin
cstrader23218-Dec-07 11:01
cstrader23218-Dec-07 11:01 
QuestionLooping through database columns [modified] Pin
craigmg7818-Dec-07 5:55
craigmg7818-Dec-07 5:55 
GeneralRe: Looping through database columns Pin
nishkarsh_k18-Dec-07 18:31
nishkarsh_k18-Dec-07 18:31 
GeneralRe: Looping through database columns Pin
craigmg7819-Dec-07 5:27
craigmg7819-Dec-07 5:27 
GeneralWindows Service - timer tick event not firing. Pin
Steven J Jowett18-Dec-07 5:08
Steven J Jowett18-Dec-07 5:08 
GeneralRe: Windows Service - timer tick event not firing. Pin
m@u18-Dec-07 5:57
m@u18-Dec-07 5:57 
GeneralRe: Windows Service - timer tick event not firing. Pin
DigiOz Multimedia18-Dec-07 15:39
DigiOz Multimedia18-Dec-07 15:39 
Here is basically the only way I have been able to get the timer to fire correctly in Windows Service:

Class level variable:

Private coTimer As New System.Timers.Timer(10000)

Add a handler in "OnStart" event to the timer's elapsed event and enable it:

<br />
Protected Overrides Sub OnStart(ByVal args() As String)<br />
    AddHandler coTimer.Elapsed, AddressOf coTimer_Elapsed<br />
    coTimer.Enabled = True<br />
    EventLog.WriteEntry("MyService Started")<br />
End Sub


Subroutine to take advantage of the timer:

<br />
Private Sub coTimer_Elapsed(ByVal pSender As Object, ByVal pArgs As System.Timers.ElapsedEventArgs)<br />
    EventLog.WriteEntry("Timer Fired!")<br />
End Sub


That should do the job for you.
Pete Soheil
DigiOz Multimedia
http://www.digioz.com

QuestionMy break point not working properly Pin
poonams18-Dec-07 1:58
poonams18-Dec-07 1:58 
GeneralRe: My break point not working properly Pin
John_Adams18-Dec-07 11:25
John_Adams18-Dec-07 11:25 
GeneralRe: My break point not working properly Pin
Nilesh Hapse18-Dec-07 19:14
Nilesh Hapse18-Dec-07 19:14 
GeneralRe: My break point not working properly Pin
poonams19-Dec-07 1:37
poonams19-Dec-07 1:37 
GeneralImage Class in vb.net 2005 Pin
VB 8.018-Dec-07 1:24
VB 8.018-Dec-07 1:24 
GeneralRe: Image Class in vb.net 2005 Pin
C1AllenS18-Dec-07 3:57
C1AllenS18-Dec-07 3:57 
GeneralRe: Image Class in vb.net 2005 Pin
VB 8.018-Dec-07 18:10
VB 8.018-Dec-07 18:10 
Generalbutton.preformclick Pin
break_day18-Dec-07 0:50
break_day18-Dec-07 0:50 
GeneralRe: button.preformclick Pin
CPallini18-Dec-07 1:07
mveCPallini18-Dec-07 1:07 
GeneralRe: button.preformclick Pin
Luc Pattyn18-Dec-07 3:50
sitebuilderLuc Pattyn18-Dec-07 3:50 
GeneralRe: button.preformclick Pin
Johan Hakkesteegt19-Dec-07 8:29
Johan Hakkesteegt19-Dec-07 8:29 
GeneralProblems with Forms in vb.net Pin
Vimalsoft(Pty) Ltd17-Dec-07 21:48
professionalVimalsoft(Pty) Ltd17-Dec-07 21:48 
GeneralRe: Problems with Forms in vb.net Pin
Christian Graus17-Dec-07 22:10
protectorChristian Graus17-Dec-07 22:10 
GeneralRe: Problems with Forms in vb.net Pin
Vimalsoft(Pty) Ltd17-Dec-07 22:35
professionalVimalsoft(Pty) Ltd17-Dec-07 22:35 
GeneralRe: Problems with Forms in vb.net Pin
Luc Pattyn18-Dec-07 0:44
sitebuilderLuc Pattyn18-Dec-07 0:44 
GeneralRe: Problems with Forms in vb.net Pin
Vimalsoft(Pty) Ltd18-Dec-07 0:46
professionalVimalsoft(Pty) Ltd18-Dec-07 0:46 
GeneralBack and forward buttons Pin
tellytub17-Dec-07 20:23
tellytub17-Dec-07 20:23 

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.