I was tryin to use this.. which kinda looks like it may use the same class ??
but it gives me way down deep call names.. I just want the title of the sub proc.. thats it..
Code:
Private Sub PrintStack()
' Create a StackTrace that captures
' filename, line number, and column
' information for the current thread.
Dim st As New StackTrace(True)
Dim i As Integer
Dim TextOut As String
For i = 0 To st.FrameCount - 1
' Note that high up the call stack, there is only
' one stack frame.
Dim sf As StackFrame = st.GetFrame(i)
Console.WriteLine()
TextOut = "High up the call stack, Method: " & sf.GetMethod().ToString & vbCrLf
TextOut = TextOut + "High up the call stack, Line Number: " & sf.GetFileLineNumber().ToString & vbCrLf & vbCrLf
My.Computer.FileSystem.WriteAllText("C://testfile.txt", TextOut, True)
Next i
End Sub