Lars
Fri Oct 21 06:33:43 CDT 2005
Hi Benjamin,
you get the current name via reflection.
Assembly.GetExecutingAssembly().GetName().Name
If your app refernce any other dll's don't
place the code there! It will return the
name of these assemblies. Place it within the
class which has the main method or any other
class which is part of the main app.
Cheers
Lars Behrmann
_________________
Nothing is impossible. UML is the key for all your problems.
AODL - Make your .net apps OpenOffice ready
http://aodl.sourceforge.net/
Benjamin Wegner schrieb:
> Hello!
>
> I have an helper assembly, which runs in different applications. In
> each application I would like to determine the name of the current
> application.
> I want to know, how I can get the name of the current service instance.
> I thougt it would be possible to get the current service using
> something like System.ServiceProcess... Then I can use the Name or
> DisplayName property.
>
> Has anyone an idea?
>
> Regards,
> Benjamin