Here you go... This is C#, but it translates very easy:
StackTrace stackTrace = new StackTrace(Thread.CurrentThread, true);
StackFrame frame = stackTrace.GetFrame(0);
Console.WriteLine("File Name: {0}, Line Number: {1}",
frame.GetFileName(), frame.GetFileLineNumber());
Regards,
Bennie Haelen
"Alex Campos" <ac*****@invalid.pcgh.com> wrote in message
news:OM**************@tk2msftngp13.phx.gbl...
Using vb.net - how can I find the current program name and line number as
I am running through the code without there being an error.