Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Application Settings pieces
Message
From
10/07/2006 23:51:00
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01135159
Message ID:
01135200
Views:
12
Hi Kevin,

>>Are you looking at the app.config file (which is only for design-time) or are you looking at the file in bin\Debug that is YourApplicationName.exe.config?

I looked at both, but I specified my own config file with this:
private string configFilePath = Application.StartupPath + @"\config\";
and this in the constructor
public TipTraxConfig()	: base(false)
{
	this.SetConfigurationSection("TipTraxConfig");
	this.ReadKeysFromConfig(configFilePath + "TipTrax.config");
}
Plus I initialized the public fields with values and that is what is showing in my textboxes with
private void RefreshFromSettings()
{
	this.txtCompanyID.Text = config.CompanyID;
	this.txtTruckID.Text = config.TruckID;
         ...
}
When I change the initial values in the TipTraxConfig for the fields, the value changes in the textboxes. In other words they are not being saved to or retrieved from the config file, app.config or TipTrax.exe.config.

Thanks
Tim
Timothy Bryan
Previous
Reply
Map
View

Click here to load this message in the networking platform