Public Sub Makeready()
Dim CurrentVersionFile As String = My.Computer.FileSystem.SpecialDirectories.Temp & "\Memory Freeo Plus Current Version.txt"
Dim MemoryFreeoPlusVersionWriter As New IO.StreamWriter(CurrentVersionFile, False, System.Text.Encoding.Default)
Dim StorageFile As String = My.Application.Info.DirectoryPath & "\Process Storage.MemFreoPls"
Dim MemFreoPlsStorageWriter As New IO.StreamWriter(StorageFile, True, System.Text.Encoding.Default)
If IO.File.Exists(StorageFile) Then
MemFreoPlsStorageWriter.Close()
Else
MemFreoPlsStorageWriter.Write("")
MemFreoPlsStorageWriter.Close()
End If
If IO.File.Exists(CurrentVersionFile) Then
Dim read As New IO.StreamReader(CurrentVersionFile)
Dim Result As String
Result = read.ReadToEnd()
Dim currentfileversion As New Version(Result)
Dim currenAppversion As New Version(Application.ProductVersion)
If currentfileversion < currenAppversion Then
MemoryFreeoPlusVersionWriter.Write(Application.ProductVersion)
MemoryFreeoPlusVersionWriter.Close()
Else
End If
Else
MemoryFreeoPlusVersionWriter.Write(Application.ProductVersion)
MemoryFreeoPlusVersionWriter.Close()
End If
If FrmOptions.KryptonCheckBoxTopMost.Checked Then
Me.TopMost = True
Else
Me.TopMost = False
End If
End Sub
at red color it gives error saying another process is using it why ??