Application Object Question

G

Guest

I have generated the following code:

lblCompany.Text = "Company Name: " & Application.CompanyName
lblProduct.Text = "Product Name: " & Application.ProductName
lblVersion.Text = "Version " & Application.ProductVersion

Application.CompanyName and Application.ProductName both return the name of
the product. How are these values set and how can I change them? The
deployment package gets the name of the company correct. The files are
stored in the directory C:\Program Files\Company Name\Product Name.

Thanks for your assistance.
 
H

Herfried K. Wagner [MVP]

GrandpaB said:
lblCompany.Text = "Company Name: " & Application.CompanyName
lblProduct.Text = "Product Name: " & Application.ProductName
lblVersion.Text = "Version " & Application.ProductVersion

Application.CompanyName and Application.ProductName both return the name
of
the product. How are these values set and how can I change them?

Take a look at your project's "AssemblyInfo.vb" file. You can set the
attributes there.
 
G

Guest

Thanks to both Herfried and TrntJohn. Sorry that I have not responded
sooner, but I was traveling. I did enter the company name into
AssemblyInfo.vb and my code, Application.CompanyName, returned the correct
value. While this does solve my immediate problem, it does raise three
related questions.

When I opened AssemblyInfo.vb none of the parameteres had been set, but yet
Application.ProductName returned the name of the project. Why? Somehow the
the Setup & Deployment Project knew the company name (the application was
installed in a folder with the company name), but Application.CompanyName did
not. Why? I also entered copyright information in AssemblyInfo.vb, but
could not find an Application property to return the copyright information.
Why?

I would appreciate an explaination or a source to investigate. Thanks again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top