Application Name

  • Thread starter Thread starter David Schwartz
  • Start date Start date
D

David Schwartz

How do you programmatically set the name (AssemblyName?) for a Windows forms
application?

Thanks!
 
How do you programmatically set the name (AssemblyName?) for a Windows forms
application?

Check out the AssemblyInfo.vb file in your project. Sample:

<Assembly: AssemblyTitle("")>
<Assembly: AssemblyDescription("")>
<Assembly: AssemblyCompany("")>
<Assembly: AssemblyProduct("")>
<Assembly: AssemblyCopyright("")>
<Assembly: AssemblyTrademark("")>
 
This is what I have in AssemblyInfo:
<Assembly: AssemblyTitle("Integrated Time and Attendance Control")>

<Assembly: AssemblyDescription("Integrated Time and Attendance Control")>

<Assembly: AssemblyCompany("Jandl Productions")>

<Assembly: AssemblyProduct("Metronome (Product of HR-Symphony Suite)")>

<Assembly: AssemblyCopyright("Copyright 2002 © Jandl Productions")>

<Assembly: AssemblyTrademark("")>

<Assembly: AssemblyCulture("")>

Which of these (if any) would be the title that appears by default on
Msgboxes?



Thanks.
 
Which of these (if any) would be the title that appears by default on
Msgboxes?

Ahhh, I see what you're getting at. None of those attributes will be
used... :)

By default, the Assembly name will be used. Check the project's
properties (in the "General" section).
 
Hmm, so I guess there's no way to dynamically change this name at runtime.
I'm surprised.
 
Hmm, so I guess there's no way to dynamically change this name at runtime.
I'm surprised.

No, but you can change the title of a MsgBox.

Plus, if you ever need to add an assembly to the Global Assembly Cache,
the name (along with version, culture and other things) determines the
uniqueness of an assembly in the GAC. If you could change it at
runtime, it would create problems locating it in the GAC.
 
Back
Top