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]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> "Bob Day" <(E-Mail Removed)> 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
>
>