473,949 Members | 26,022 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Application Object Question

I have generated the following code:

lblCompany.Text = "Company Name: " & Application.Com panyName
lblProduct.Text = "Product Name: " & Application.Pro ductName
lblVersion.Text = "Version " & Application.Pro ductVersion

Application.Com panyName and Application.Pro ductName 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.
--
GrandpaB
Nov 21 '05 #1
3 1279
"GrandpaB" <Gr******@discu ssons.microsoft .com> schrieb:
lblCompany.Text = "Company Name: " & Application.Com panyName
lblProduct.Text = "Product Name: " & Application.Pro ductName
lblVersion.Text = "Version " & Application.Pro ductVersion

Application.Com panyName and Application.Pro ductName 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.v b" file. You can set the
attributes there.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2
Open your AssembyInfo.vb file add change the values there.

"GrandpaB" wrote:
I have generated the following code:

lblCompany.Text = "Company Name: " & Application.Com panyName
lblProduct.Text = "Product Name: " & Application.Pro ductName
lblVersion.Text = "Version " & Application.Pro ductVersion

Application.Com panyName and Application.Pro ductName 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.
--
GrandpaB

Nov 21 '05 #3
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.Com panyName, 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.Pro ductName 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.Com panyName 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.
--
GrandpaB

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
2796
by: Timothy Shih | last post by:
Hi, I am having a freezing issue with my application. My application serves several remotable objects, all of which must be initialized before their use. Furthermore, some of them depend on each other. On my application startup, I configure the objects usting the RemotingConfiguration class to load the config file. Then I "ping" each of the objects to call their constructors. This all works fine if no one is attempting to connect at the...
6
4315
by: Ollie Riches | last post by:
I understand the use of Application.DoEvents() to process all outstanding messages on the message queue in a winforms application if you have long running process on the UI thread. But can anyone explain to me why I need to call DoEvents when I am using a COM component that calls back to into the ..Net application? - If I don't call DoEvents after receiving a callback then sometimes no more messages are pumped, it appears that the message...
4
1670
by: Keith Chadwick | last post by:
I am having some trouble referencing an Application("myVar") variable from within a module.vb file on my ASP.NET site. According to the documentation I should be able to reference System.Web.HttpApplication but it does not seem to like that one bit. I also have a MSXML2.DOMDocument30 defined as a public object within the vb module which is loaded during the application start up with a bunch of XML. What is weird is that the data contained...
3
1939
by: SL | last post by:
All, As I understand it, a single application (i.e. IIS virtual directory) in ASP.NET may in fact have more than one corresponding HttpApplicationState object (more or less one per server thread, I think). During each request, only one of these objects is exposed to the page as Page.Application. This seems to be supported by the fact that when I use the debugger, I can see the Application_Start event firing more than one time even...
7
2178
by: Greg Collins [MVP] | last post by:
Hi, I couldn't find what I was looking for by searching the newsgroup, but perhaps these have already been discussed somewhere. This is a bit long with a lot of interrelated questions. What I've got is a decodeImage.aspx page that gets called to decode base64 encoded images and return them as displayable images to a Web page. The ASPX page is passed two parameters, "file" and "img". The "file" parameter specifies and XML file on the Web...
16
3169
by: Fernando Arámburu | last post by:
Hi , it´s me again. I will take another way because yesterday I make a question and, probably I didn´t make myself clear so you didn´t understand my question. I want to know if there is any way to register a method to the Application Start event. I know there is one way, in Global.asax writing code in Application_Start
14
1499
by: Ray5531 | last post by:
I have a console application in my local computer which I like to use remoting in it,to instanciate an object (MyClass.dll) in a web application(its bin folder) in a completely seperated box(in the same domain thought) .I have two questions: 1)Is my case covered in "Remoting objects hosted in IIS" topic?Are they same? 2) How should I authenticate to IIS from my console application? Do I really need to authenticate to IIS before...
20
4550
by: J-T | last post by:
We are working on an asp.net application which is a 3-tier application.I was aksed to create a component which monitors a folder and gets the file and pass them to a class library in our business logic layer(so far so good and easy).I initialize my class which is using a FileSystemWatcher in my Global.asax and everything works fine.I have found FileSystemWatcher class not very reliable and sometimes it behavies unexpectedly.I'm afriad that...
4
1156
by: jsever05 | last post by:
I have created a class that communicates with an external program using a single socket connection. This socket connection is already thread-safe, so multiple requests to the socket can be made at the same time. I am trying to set this up as a global object in an ASP.NET web server running IIS 5.0, but I'm having a problem with that. In the Global.asax.cs file, I have added the following reference:
6
1318
by: pinorama123 | last post by:
I have an ASP.NET application that contains a few classes that I have built. One of my objects is a user object. I have a pretty basic question about how this would work. If I have multiple users logging into my application and using the user object do they all share the same object or does ASP.NET know that each user's object belongs to them? I'm seeing some strange behavior that leads me to believe when one user dimensions an instance...
0
10169
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9989
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11184
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10697
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9902
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8261
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7435
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
4545
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3552
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.