Question

I am trying to write a method for a Compact Framework 2.0 dll which will return the name of the parent application from which the dll is called but I am struggling to see how to do this.

Using reflection I am able to get the dll I have written etc - any ideas how to get the application name?

Thanks

Morris

Was it helpful?

Solution

And if you want the full path to the EXE:

Assembly.GetCallingAssembly().GetName().CodeBase

OTHER TIPS

You can use

AppDomain.CurrentDomain.FriendlyName
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top