H
hermann leinen
Hello!
I want to migrate from VB6 to C#.
In VB6 I have a class that checks for mails each minute.
This mail-check class also instantiates a self-firing timer class
(cSelfTimer) because I did not want to put a timer in one of my forms.
It looks like this
Class clsMail
Private WithEvents cTmr as clsTimer
Private Sub cTmr_TimerEvent
'// Check for new mails
End sub
End ClsMail
Can somebody please tell me how I should do this in C#?
Should I write a class in C# that also has a timer class (if such
exists) in it, or what would be a nice way to do it in C#?
Thank you,
Hermann
I want to migrate from VB6 to C#.
In VB6 I have a class that checks for mails each minute.
This mail-check class also instantiates a self-firing timer class
(cSelfTimer) because I did not want to put a timer in one of my forms.
It looks like this
Class clsMail
Private WithEvents cTmr as clsTimer
Private Sub cTmr_TimerEvent
'// Check for new mails
End sub
End ClsMail
Can somebody please tell me how I should do this in C#?
Should I write a class in C# that also has a timer class (if such
exists) in it, or what would be a nice way to do it in C#?
Thank you,
Hermann