Tom,
Herfried & Imran answered your question.
I just wanted to point out that Application.ProductName does not return the
root namespace per se.
It actually returns the value of the AssemblyProductAttribute found in the
AssemblyInfo.vb file of your project. If you leave this attribute its
default value of blank then you do indeed get the root namespace. However if
you change the attribute's value then you will get the new value.
I normally change the AssemblyProductAttribute to a displayable value & use
Application.ProductName as my message box titles.
Note Application.ProductVersion comes from the
AssemblyInformationalVersionAttribute if you add it to your AssemblyInfo.vb
file, if you do not add AssemblyInformationalVersion, the
Application.ProductVersion comes from the AssemblyVersionAttribute:
For example, if my root namespace is "TheGreatAndWonderfulApp", I might set
my AssemblyInfo.vb file as:
....
<Assembly: AssemblyProduct("The Great & Wonderful Application")>
....
<Assembly: AssemblyVersion("1.0.*")>
<Assembly: AssemblyInformationalVersion("1.0")> ' Product Version
Hope this helps
Jay
"Tom" <no*****@nowhere.none> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Application.ProductName returns the root namespace. How do I get the
assembly name as displayed on the project properties dialog?
Tom