Looking for a way to programmatically dump the call stack and a .net Win Forms app when ever a section of code is hit. Its something I haven\'t come across before but will save
You can use:
StackTrace callStack = new StackTrace();
And to then access a specific stack frame:
StackFrame frame = callStack.GetFrame(1);