Good question. yes, I am running in debug mode. The only thing I could
find on "Program Debug Symbols" in help was:
"To access the Debug Symbol Files property page, right-click on your
Solution in Solution Explorer and choose Properties from the shortcut menu.
Expand the Common Properties folder and click the Debug Symbol Files page. "
However, the "Debug Symbol Files" does not appear as an option as it says it
should above. I presume that means I some how heave it turned off. I don't
see where to turn it on. Where do you turn it on?
Please advise. Thanks for your help.
Bob Day
"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:up**************@tk2msftngp13.phx.gbl...
Hello,
"Bob Day" <Bo****@TouchTalk.net> schrieb: Howver, using the code you suggest below in various situations always
returns a line number of zero Dim CurrentStack As System.Diagnostics.StackTrace
MsgBox (CurrentStack.GetFrame(0).GetFileLineNumber)
Do you run your application in Debug mode? 'GetFileLineNumber' is only
avaliable if Program Debug symbols are available for the application.
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet