Search the Community
Showing results for tags 'notepad'.
-
Okay, we've run across something a bit odd. I have a Windows forms application, that when it starts, downloads and opens a file (with a .ini file extension) to retrieve some system settings. Private Sub SetupKioskInformation() Dim strKioskString As String = "" Dim strProperty() As String = Nothing Dim strObject As String = "" Dim strValue As String = "" Dim bolbtnWebpageOneSet As Boolean = False Dim bolbtnWebpageTwoSet As Boolean = False Try '-------------------------------------------------------- '- Determine if the Kiosk.ini file exists . . . '-------------------------------------------------------- If File.Exists(strApplicationPath & "kiosk.ini") = True Then '---------------------------------------------------- '- If it does open it in a StreamReader . . . '---------------------------------------------------- srStreamReader = New StreamReader(strApplicationPath & "kiosk.ini") Do While srStreamReader.Peek >= 0 '- Do some stuff . . . Loop Catch ex As Exception WriteToErrorReport(ex.Message, ex.StackTrace, "SetupInformationButtons") Finally If srStreamReader IsNot Nothing Then srStreamReader.Close() srStreamReader.Dispose() End If End Try End Sub And it also opens another file to write some log information to. This file has a .log extension. Private Function WriteLastTransferDate() As Boolean Dim bolWriteLastTransferDate As Boolean = True Try swStreamWriter = New StreamWriter(strApplicationPath & strLastTransferDateFileName, False) swStreamWriter.WriteLine(Now.ToShortDateString) Catch ex As Exception bolWriteLastTransferDate = False WriteToErrorReport(ex.Message, ex.StackTrace, "WriteLastTransferDate") Finally If swStreamWriter IsNot Nothing Then swStreamWriter.Close() swStreamWriter.Dispose() End If End Try Return bolWriteLastTransferDate End Function This application is running on Windows 7 32-bit version. On two of the three machines it is installed on everything works fine. But on the third machine, for some reason, when we minimize or close the application we see each of the above mentioned files open in Notepad. The question I have is why should Notepad be opening for either of those files since I'm not using Notepad?
- 3 replies
-
- notepad
- streamreader
-
(and 2 more)
Tagged with: