getting application name and version from out of an assembly

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I try to make an about form and put it in my own namespace/class. It works
but if I want to display eg application name, it does not. It display name of
the calss where the aboutbox is in (not the calling application). What do I
wrong ? This is what I call:

AppName.Text =
System.Reflection.Assembly.GetExecutingAssembly().GetName().Name.ToString();
 
Try the Application.ProductName or Application.ExecutablePath property. If
you use the Application.ExecutablePath to get the name of the assembly then
you can use the Path.GetFileNameWithoutExtension() method to get just the
name.
 
Back
Top