Try experimenting with the first parameter passed to the StackFrame constructor. Try values of (0-10) and see what you come up with... ;-)
On Oct 28, 11:12 pm, VillageIdiot <[EMAIL PROTECTED]> wrote: > Your solution worked! It certainly wasn't obvious to me while I was > trying to research this in reference material. > > My vb.net source code looks like this: > > Dim sf As New StackFrame(2, False) > Msgbox(sf.GetMethod().DeclaringType.Name.ToString & ":" & > sf.GetMethod().Name.ToString) > > When I execute this code from one of my vb.net programs, you are > correct that GetMethod.DeclaringType.Name returns the calling program > name, and GetMethod.Name returns the Button that I pressed within my > application. > > But when I call the .DLL function from a commercial application I get: > > RuntimeMethodHandle:InvokeMethodFast > > This is not what I was expecting. Do you have any suggestions for > getting its program name, and possibly the button/option that it was > selected from? > > Thanks again for all your help > > VillageIdiot
