Hello All,..
I have some settings stored in the project settings which show up under
My.Settings. ...
All works fine.
Now, I wanted to change the value of one of these settings, so I went into
the app.config file, and changed the value, and reran the app. But it still
picks up the old value, and doesn't pay attention to the new value which I
entered in the app.config file.
I tried doing a My.Settings.Rel oad(), but it STILL wont read the new value
in from the file.
How can I get it to actually pay attention to changes to the settings?
Thanks in advance.
- Arthur Dent. 3 3013
You might need to update the settings in the properties. Did your
modification show up in your settings?
--
Thiele Enterprises - The Power Is In Your Hands Now!
"Arthur Dent" <hi************ *********@yahoo .comwrote in message
news:40******** *************** ***********@mic rosoft.com...
Hello All,..
I have some settings stored in the project settings which show up under
My.Settings. ...
All works fine.
Now, I wanted to change the value of one of these settings, so I went into
the app.config file, and changed the value, and reran the app. But it
still picks up the old value, and doesn't pay attention to the new value
which I entered in the app.config file.
I tried doing a My.Settings.Rel oad(), but it STILL wont read the new value
in from the file.
How can I get it to actually pay attention to changes to the settings?
Thanks in advance.
- Arthur Dent.
I think *perhaps* it is that it was the My.Settings for a DLL project, and
since they are stored in the app.config file, and the DLL's do not copy
their app.config file, it didn't make any difference to change them.
Which then kind of begs the question, of why a DLL project even HAS a
My.Settings page in the property sheets.
"Maligui" <ma*****@verizo n.netwrote in message
news:WRRZg.4290 $kG5.1135@trndn y07...
You might need to update the settings in the properties. Did your
modification show up in your settings?
--
Thiele Enterprises - The Power Is In Your Hands Now!
"Arthur Dent" <hi************ *********@yahoo .comwrote in message
news:40******** *************** ***********@mic rosoft.com...
>Hello All,..
I have some settings stored in the project settings which show up under My.Settings. ... All works fine.
Now, I wanted to change the value of one of these settings, so I went into the app.config file, and changed the value, and reran the app. But it still picks up the old value, and doesn't pay attention to the new value which I entered in the app.config file.
I tried doing a My.Settings.Rel oad(), but it STILL wont read the new value in from the file.
How can I get it to actually pay attention to changes to the settings?
Thanks in advance. - Arthur Dent.
I belive the app.config file is embeded into a windows project. It is
external in a ASP project.
I would try the 'Settings' pane to setup your settings (eg Data connections,
web services, etc.)
This will update the config file w/o errors. But if it is something else,
then you will have to go to another pane.
What are you trying to add/modify? Which setting?
--
Thiele Enterprises - The Power Is In Your Hands Now!
"Arthur Dent" <hi************ *********@yahoo .comwrote in message
news:AF******** *************** ***********@mic rosoft.com...
>I think *perhaps* it is that it was the My.Settings for a DLL project, and since they are stored in the app.config file, and the DLL's do not copy their app.config file, it didn't make any difference to change them.
Which then kind of begs the question, of why a DLL project even HAS a
My.Settings page in the property sheets.
"Maligui" <ma*****@verizo n.netwrote in message
news:WRRZg.4290 $kG5.1135@trndn y07...
>You might need to update the settings in the properties. Did your modification show up in your settings?
-- Thiele Enterprises - The Power Is In Your Hands Now! "Arthur Dent" <hi************ *********@yahoo .comwrote in message news:40******* *************** ************@mi crosoft.com...
>>Hello All,..
I have some settings stored in the project settings which show up under My.Settings . ... All works fine.
Now, I wanted to change the value of one of these settings, so I went into the app.config file, and changed the value, and reran the app. But it still picks up the old value, and doesn't pay attention to the new value which I entered in the app.config file.
I tried doing a My.Settings.Rel oad(), but it STILL wont read the new value in from the file.
How can I get it to actually pay attention to changes to the settings?
Thanks in advance. - Arthur Dent.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Pradeep |
last post by:
Hi,
In the Web application I am working on, data is read from a SQL Server
database. At any time, there are about 15 people browsing the web.
The SQL Server database is updated with new information once every
hour. The update takes a couple of minutes. The isolation level during
the update is so to Serialazable so that the front-end does not get
any incorrect data.
|
by: Pieter |
last post by:
Hi,
I'm using the Settings.settings of VB.NET to define a Connectionstring
(Scope = application). When I deploy the Solution, and change this Setting
in the app.config-file, it seems that itdoesn't affect the Application at
all! It still uses the old value. Are the Settings.Setting hardcoded
somewhere
in the application?
I can't find any documentation of this subject, or anyway how I should do
|
by: NickP |
last post by:
Hi there,
Anyone else got a clue how the settings.settings are supposed to work?
I add loads, then get errors and they wont appear any more until I
remove them from the settings.settings file manually.
Nick.
|
by: Luis Lanuza |
last post by:
Hi all,
I can't get Visual Studio 2003 to recognize my WindowsXP SP2 regional
settings.
For ex: On Control Panel / Regional Settings / Regional Options Tab, my
standadrs and formats corresponds to English (United States), where for
example, if you see on the Customize secction, the default decimal symbol is
a dot the digit group symbol is a comma.
The problem I have is that VS2003 wont recognize those settings, and is
|
by: Arthur Dent |
last post by:
Hello All,..
I have some settings stored in the project settings which show up under
My.Settings. ...
All works fine.
Now, I wanted to change the value of one of these settings, so I went into
the app.config file, and changed the value, and reran the app. But it still
picks up the old value, and doesn't pay attention to the new value which I
entered in the app.config file.
| |
by: Marc |
last post by:
Hello,
I have a problem with the settings (save and load) My.Settings in
VB.NET2005.
Actually, I have made a new application, then I have created a setting
(with a default value) and then I publish my application.
In my application (designer), if I change a setting and then save the
settings, all is fine, the next time I load the application, the
settings are loaded automatically and used correctly.
|
by: =?Utf-8?B?Um9iIEw=?= |
last post by:
I am trying to use a custom type inside settings.settings. When I create my
class, I am able to add it in as the type and the value ends up showing as
XML data. If I change any of the values in my class, the values do not
update the settings file. Can anyone provide any insight and/or sample code
on how to use a user defined class as a valid and usable type in the
settings.settings file?
Thanks,
--Rob.
|
by: =?Utf-8?B?UmljaA==?= |
last post by:
Private Sub UpdateTblHistory()
Dim strSql As String
strSql = "Update tbl_History set SubscrID = @SubscrID Where ID = @ID"
da.UpdateCommand.CommandText = strSql
da.UpdateCommand.Parameters.Add("@SubscrID", SqlDbType.VarChar, 50,
"SubscrID")
da.UpdateCommand.Parameters.Add("@ID", SqlDbType.Int, 4, "ID")
da.Update(ds, "tbl_History")
|
by: John Salerno |
last post by:
I'm thinking about writing a small script that will update an xml file
with whatever game settings the user enters. I imagine that the user
will have a single-screen GUI application with several different
settings, like this:
CROSSHAIRS ON
LOCATION ON
HEALTHBAR OFF
etc.....
|
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,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |