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
System.Environment.StackTrace
Will give you the current stack as a string.
You can also use the StackTrace class as others have pointed out if you have more advanced needs.
StackTrace