Click here to Skip to main content
16,006,535 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: terminating VB6 application [modified] Pin
Vimalsoft(Pty) Ltd30-Nov-07 0:43
professionalVimalsoft(Pty) Ltd30-Nov-07 0:43 
GeneralRe: terminating VB6 application Pin
"Ondra30-Nov-07 1:59
"Ondra30-Nov-07 1:59 
GeneralRe: terminating VB6 application Pin
Vimalsoft(Pty) Ltd30-Nov-07 2:43
professionalVimalsoft(Pty) Ltd30-Nov-07 2:43 
GeneralRe: terminating VB6 application Pin
"Ondra30-Nov-07 2:52
"Ondra30-Nov-07 2:52 
AnswerRe: terminating VB6 application Pin
ChandraRam30-Nov-07 1:38
ChandraRam30-Nov-07 1:38 
GeneralRe: terminating VB6 application Pin
"Ondra30-Nov-07 2:05
"Ondra30-Nov-07 2:05 
Answeranother clue? Pin
"Ondra30-Nov-07 2:18
"Ondra30-Nov-07 2:18 
AnswerThere's problem with timers! Pin
"Ondra30-Nov-07 2:40
"Ondra30-Nov-07 2:40 
YESS, it's most probalby caused by WinAPI timers- I've trierd to start VBTimer Only and it ends correctly. The syntax of timers is:

Declare Function timeKillEvent Lib "winmm.dll" (ByVal uID _
As Long) As Long

Declare Function timeSetEvent Lib "winmm.dll" (ByVal uDelay _
As Long, ByVal uResolution As Long, ByVal lpFunction _
As Long, ByVal dwUser As Long, ByVal uFlags As Long) _
As Long

they are started:

Time2 = timeSetEvent(Period2, Period2, AddressOf Timer2Clb, 0, TIME_PERIODIC)
Time1 = timeSetEvent(Period1, Period1, AddressOf Timer1Clb, 0, TIME_PERIODIC)

and stopped:

Public Sub StopTimers()
Form1.VBTimer.Interval = 0

If Time1 <> 0 Then
timeKillEvent (Time1)
Time1 = 0
End If

If Time2 <> 0 Then
timeKillEvent (Time2)
Time2 = 0
End If

End Sub

If you know what's wrong, I would be grateful for reply.


-- modified at 8:52 Friday 30th November, 2007
Questionhow to detect changes in system date Pin
eyes200729-Nov-07 22:35
eyes200729-Nov-07 22:35 
AnswerRe: how to detect changes in system date Pin
Christian Graus29-Nov-07 22:53
protectorChristian Graus29-Nov-07 22:53 
GeneralRe: how to detect changes in system date Pin
eyes200729-Nov-07 23:02
eyes200729-Nov-07 23:02 
GeneralRe: how to detect changes in system date Pin
Colin Angus Mackay29-Nov-07 23:07
Colin Angus Mackay29-Nov-07 23:07 
GeneralRe: how to detect changes in system date Pin
eyes200729-Nov-07 23:10
eyes200729-Nov-07 23:10 
GeneralRe: how to detect changes in system date Pin
Christian Graus29-Nov-07 23:11
protectorChristian Graus29-Nov-07 23:11 
GeneralRe: how to detect changes in system date Pin
Christian Graus29-Nov-07 23:11
protectorChristian Graus29-Nov-07 23:11 
AnswerRe: how to detect changes in system date Pin
Tom Deketelaere30-Nov-07 5:07
professionalTom Deketelaere30-Nov-07 5:07 
QuestionAdd Bold Items in Combo Box Pin
Kumaran21cen29-Nov-07 22:30
Kumaran21cen29-Nov-07 22:30 
AnswerRe: Add Bold Items in Combo Box Pin
Christian Graus29-Nov-07 22:53
protectorChristian Graus29-Nov-07 22:53 
Questiondetecting office version in vb.net Pin
rajneesh00729-Nov-07 21:59
rajneesh00729-Nov-07 21:59 
GeneralRe: detecting office version in vb.net Pin
Paul Conrad8-Dec-07 5:39
professionalPaul Conrad8-Dec-07 5:39 
QuestionInfragistics Licencing... Pin
Illegal Operation29-Nov-07 20:58
Illegal Operation29-Nov-07 20:58 
AnswerRe: Infragistics Licencing... Pin
pmarfleet29-Nov-07 21:43
pmarfleet29-Nov-07 21:43 
Questionproblem with User control Pin
Sipder29-Nov-07 18:30
Sipder29-Nov-07 18:30 
AnswerRe: problem with User control Pin
~V~29-Nov-07 21:07
~V~29-Nov-07 21:07 
QuestionPop Up Pin
Aparna.B29-Nov-07 17:39
Aparna.B29-Nov-07 17:39 

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.