I want to trim the Stack Trace on the exceptions Stack trace to just give me the module or form and the line number the at the code broke on. How can I do this? Looking for code please. Also can you pull the error number in VB.net 2003?
Dim file As New FileStream("c:\test\test.txt", FileMode.Open)
Dim reader As New StreamReader(file)
Dim line As String = reader.ReadLine()
Catch ex As Exception