473,506 Members | 17,100 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Product Code References

I really miss the EQU statement ...

I have a C# windows application with three dialog boxes (so there are four
separates modules). Two of these dialog boxes reference the Product Code
for looking up information about the current copy.

Every time a new version of the project is created the product code is
updated and must be manually set in two separate locations.

Is there a way to read the Product Code so it does not need to be manually
entered?

Is there a way to share one copy of a string that is the Product Code so
that it only needs to be changed in one location?

--
-- Thom Little -- www.tlaNET.net -- Thom Little Associates, Ltd.
--

Nov 16 '05 #1
2 1623
Hi Thom,

You can create a class and have a static constant variable "ProductCode"
which can be initialized to whatever value you want. This variable can be
accessed from all your forms.

check out the following information on Static keyword,

http://msdn.microsoft.com/library/de...rfStaticPG.asp

Hope this helps...

Cheers,
Madhu

MVP - C# | MCSD.NET

"Thom Little" <th**@tlanet.net> wrote in message
news:ex*************@tk2msftngp13.phx.gbl...
I really miss the EQU statement ...

I have a C# windows application with three dialog boxes (so there are four
separates modules). Two of these dialog boxes reference the Product Code
for looking up information about the current copy.

Every time a new version of the project is created the product code is
updated and must be manually set in two separate locations.

Is there a way to read the Product Code so it does not need to be manually
entered?

Is there a way to share one copy of a string that is the Product Code so
that it only needs to be changed in one location?

--
-- Thom Little -- www.tlaNET.net -- Thom Little Associates, Ltd.
--

Nov 16 '05 #2
Thanks for the nudge.

--
-- Thom Little -- www.tlaNET.net -- Thom Little Associates, Ltd.
--

"Madhu [C#-MVP]" <ma*************@hotmail.com> wrote in message
news:Ot*************@TK2MSFTNGP15.phx.gbl...
Hi Thom,

You can create a class and have a static constant variable "ProductCode"
which can be initialized to whatever value you want. This variable can be
accessed from all your forms.

check out the following information on Static keyword,

http://msdn.microsoft.com/library/de...rfStaticPG.asp

Hope this helps...

Cheers,
Madhu

MVP - C# | MCSD.NET

Nov 16 '05 #3

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

Similar topics

1
1919
by: Ovid | last post by:
Hi, I've run into a bit of a sticky design issue. We have products in three categories which I will call 'A', 'B' and 'C'. We have "kits" which contain three products, one from each category....
1
1375
by: Angelos | last post by:
Hello, -I wrote a script that you use it to add products in the database. -Each product is associated with files. -In the Form to add the product you have to enter the product name in a textfield...
2
2063
by: yackel | last post by:
Hi there, I'm just in the paper-designing stage of an inventory / sales database but am looking for some help and suggestions as it seems a little out of the norm due to the different classes of...
3
5013
by: S. van Beek | last post by:
Dear reader, I still have a problem with my reference libraries. In my frond end application a check procedure for missing references is available. The problem I confronted with is that...
1
3766
by: BuddyWork | last post by:
Hello, When a particular user (has administrator rights) on a Windows 2000 Server SP4 tries to run any MSI's we get the message mentioned in the subject. If we logon with another user that has...
30
2455
by: jeremygetsmail | last post by:
I've got an adp (Metrix.adp) with a reference to another adp (InteractSQL.adp). InteractSQL sits on a server, and is refered to by all of the clients (Metrix), which sit on the client machines...
1
3342
by: urban.john | last post by:
Here are my steps: create resource files from resx files: <echo message="CREATING RESOURCE FILES FROM RESGEN EN" /> <resgen todir="product\resources_en" verbose="true"> <resources> <include...
1
2150
by: ollielaroo | last post by:
Hi guys, Firstly I did do a search for this one first but I couldn't find anything related in this forum. I am using Dreamweaver MX and trying to build admin pages for an ASP site. My problem is...
1
1215
by: mandanarchi | last post by:
I know there isn't a native function for calculating the product in Access like there is in Excel, but I'm trying to incorporate our various spreadsheets into our database and therefore I need this...
0
7220
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,...
0
7105
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...
0
7308
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7371
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...
1
7023
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5617
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,...
1
5037
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...
1
757
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
410
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...

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.