473,405 Members | 2,262 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Resource File mystery entries

Visual Studio .net 2003 automatically creates resx files with three entries
in them. What I don't understand is:

1) sometimes additional entries are automatically placed in the resx file,
and I don't understand what is triggering this. e.g. some of my app
specific objects wind up in the resx file auto-magically.
2) building on 1) above, these additional resources are then referenced in
the cs file InitializeComponent method, which is fine, BUT, sometimes,
completly unrelated web pages will have the same resource references placed
into their InitializeComponent method, resulting in run-time errors. I can
comment out these lines, but, of course, they keep coming back because
InitializeComponent is auto generated. This is a real mystery, and is
driving me crazy!! A code excerpt follows:

/// <summary>

/// Required method for Designer support - do not modify

/// the contents of this method with the code editor.

/// </summary>

private void InitializeComponent()

{

System.Resources.ResourceManager resources = new
System.Resources.ResourceManager(typeof(ClientProf ile));

this.htxtWNSTSelectedNodes.TextChanged += new
System.EventHandler(this.htxtWNSTSelectedNodes_Tex tChanged);

this.htxtWNSTClntID.TextChanged += new
System.EventHandler(this.htxtWNSTClntID_TextChange d);

this.tabCP.TabClick += new
Infragistics.WebUI.UltraWebTab.TabClickEventHandle r(this.tabCP_TabClick);

this.btnNextSVD.Click += new System.EventHandler(this.btnNextSVD_Click);

this.GlobalClientName = "XYZ Corp.";

// this.VIMSurplusVehicle =
((VIM.Components.Vehicle.SurplusVehicle)(resources .GetObject("$this.VIMSurpl
usVehicle")));

// this.VIMVehicleRequest =
((VIM.Components.Vehicle.NewVehicle)(resources.Get Object("$this.VIMVehicleRe
quest")));

this.Load += new System.EventHandler(this.Page_Load);

}
Any help would be appreciated!

David Laub
Nov 18 '05 #1
1 1182
Did you solve this, cos it's killing me.

"David Laub" <dl***@wheels.com> wrote in message news:<ei**************@tk2msftngp13.phx.gbl>...
Visual Studio .net 2003 automatically creates resx files with three entries
in them. What I don't understand is:

1) sometimes additional entries are automatically placed in the resx file,
and I don't understand what is triggering this. e.g. some of my app
specific objects wind up in the resx file auto-magically.
2) building on 1) above, these additional resources are then referenced in
the cs file InitializeComponent method, which is fine, BUT, sometimes,
completly unrelated web pages will have the same resource references placed
into their InitializeComponent method, resulting in run-time errors. I can
comment out these lines, but, of course, they keep coming back because
InitializeComponent is auto generated. This is a real mystery, and is
driving me crazy!! A code excerpt follows:

/// <summary>

/// Required method for Designer support - do not modify

/// the contents of this method with the code editor.

/// </summary>

private void InitializeComponent()

{

System.Resources.ResourceManager resources = new
System.Resources.ResourceManager(typeof(ClientProf ile));

this.htxtWNSTSelectedNodes.TextChanged += new
System.EventHandler(this.htxtWNSTSelectedNodes_Tex tChanged);

this.htxtWNSTClntID.TextChanged += new
System.EventHandler(this.htxtWNSTClntID_TextChange d);

this.tabCP.TabClick += new
Infragistics.WebUI.UltraWebTab.TabClickEventHandle r(this.tabCP_TabClick);

this.btnNextSVD.Click += new System.EventHandler(this.btnNextSVD_Click);

this.GlobalClientName = "XYZ Corp.";

// this.VIMSurplusVehicle =
((VIM.Components.Vehicle.SurplusVehicle)(resources .GetObject("$this.VIMSurpl
usVehicle")));

// this.VIMVehicleRequest =
((VIM.Components.Vehicle.NewVehicle)(resources.Get Object("$this.VIMVehicleRe
quest")));

this.Load += new System.EventHandler(this.Page_Load);

}
Any help would be appreciated!

David Laub

Nov 18 '05 #2

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

Similar topics

2
by: jw56578 | last post by:
Hi, so what can be done about this. I am retrieving custom display messages from the culture specific resource files through ResourceManager. But I have about 20 differnt languages, so whenever i...
2
by: Dennis Myrén | last post by:
Hi. I would need an advice here please. I have to define a set of constant key/value pairs for my C# .NET DLL component. We are talking about at least 5000 pairs (where each key is a...
0
by: JezB | last post by:
Given a reference to an Assembly, is there any way to generically scan the assembly for embedded resource files ? And, given such a resource file, is there any way to loop through all the...
0
by: JezB | last post by:
Given a resource file, is there any way to loop through all the entries in that resource file ?
0
by: JezB | last post by:
I have used ResourceWriter and ResourceReader for writing a reading resource files. What I want to know is, can I open a resource file in "Append" mode so that I can read entries from it and add...
1
by: steve bull | last post by:
I have created valrious forms but would like to make the text for the controls come from a resource file. I am using VS C#2005 express at the moment and although it creates an empty .resx file for...
3
by: al | last post by:
Hi, I use a resource file (.resx) to store user's settings such as language and other strings. The problem i'm facing is that when the user changes one of the strings in the resource file, ...
11
by: Alan T | last post by:
I added a resource file into my project, to store the caption of buttons and labels.. How do I make use of this resource file to dynamically assign to the buttons and labels ?
0
by: klemen.verdnik | last post by:
Hi... I'm having some difficulties getting all possible keys from a specific resource class. Let's say I have a file named: MyProj.TranslationStrings.resx in my App_GlobalResources folder ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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...
0
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...
0
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,...

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.