• 0

[C#] How to get the Application's name


Question

How do i retrieve the application's name?

Isnt it something like App.ApplicationName or something? I cant remember and cant find it on the net!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Product name of the 'EXE' (not! necessary the name of the 'EXE' file), as seen in Explorer's property window:

 Application.ProductName;

Name of the 'EXE' file:

 Path.GetFileName(Application.ExecutablePath);

Link to comment
Share on other sites

  • 0

That needs the System.Windows.Forms namespace. Can it be done another way? Im trying to do this inside a class method... not on a windows form.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.