Hi all.I am using the following code to check for version of my program and if the current version is old i tell the user to update and close the applicaton completly. The current code does tell the user that application is old but that massage keeps coming over and over ... Like i am in infinite loop or something. Could any one tell me how i can fix this problem and close my application completly and come out of that infinite loop ?
Note : the following code is placed near end of onload event
Note : the following code is placed near end of onload event
Code:
Dim LatestVersion As Single
Dim CurrentVersion As Single
CurrentVersion = 2
LatestVersion = Val(Inet1.OpenURL("[URL unfurl="true"]http://somesite.com/ts.txt"))[/URL]
If LatestVersion > CurrentVersion Then
MsgBox "old version!!!"
Unload Me
End If