I would suggest that this line:is quite wrong. Presumably DecodeText opens the file, reads the contents, decrypts it and returns the result. ReadAllLines expects a file path and, if my assumption is correct then what you're passing to it is definitely not a file path.vb.net Code:
Dim arrDBULineCount() As String = IO.File.ReadAllLines(DecodeText(strFileLocation))
As for the ProgressBar "not working" you probably have to call its Refresh method to force it to repaint because your thread is too busy working to update the UI.




Reply With Quote