473,406 Members | 2,281 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,406 software developers and data experts.

How to update application settings in vb.net code

Bob
The my.settings name space is easy to use to modify User settings from
within code, but the application settings can't seem to be modified that
easily.
I want the user to be able to modify some of the application setting ( like
my connection strings) through a friendly user interface on one of my forms,
without having to go in the .config file with notepad. If its in my code I
can do testing and validating when he chages things.

Any help appreciated

Bob
Jun 19 '06 #1
2 13089
Hi,

If you go to the project properties and click the settings tab, you can
define my.settings settings. In the scope column you can specify if the
setting is an application or user setting.

I have never tried the above solution, but I remember reading it
somewhere in msdn.

Cheers,
Ahmed
Bob wrote:
The my.settings name space is easy to use to modify User settings from
within code, but the application settings can't seem to be modified that
easily.
I want the user to be able to modify some of the application setting ( like
my connection strings) through a friendly user interface on one of my forms,
without having to go in the .config file with notepad. If its in my code I
can do testing and validating when he chages things.

Any help appreciated

Bob


Jun 20 '06 #2
Bob
Thanks, I know that, the problem is that if you scope the settings to
application, you can't modify them from within code, they seem to be read
only and you can only access them via notepas in te app.config file when you
distribute the application.

Since when I distribute my application, duing its lifecycle, things like
connection strings are liable to change, I want to give the user the ability
to configure these and other settings from within the app. Its easy to do if
you use user scoped settings, but that means that if another user logs in
and uses the same app, you have to configure it per user.

I want to be able to modify application scope settings. I had developped
code to do that in vb.net 2003 but now I,m using 2005 and I wanted to find
out if there was y built-in way to do that.

If not, I,ll stick with the user scoped settings.

Bob
"Ahmed" <ah*******@gmail.com> wrote in message
news:11**********************@r2g2000cwb.googlegro ups.com...
Hi,

If you go to the project properties and click the settings tab, you can
define my.settings settings. In the scope column you can specify if the
setting is an application or user setting.

I have never tried the above solution, but I remember reading it
somewhere in msdn.

Cheers,
Ahmed
Bob wrote:
The my.settings name space is easy to use to modify User settings from
within code, but the application settings can't seem to be modified that
easily.
I want the user to be able to modify some of the application setting (
like
my connection strings) through a friendly user interface on one of my
forms,
without having to go in the .config file with notepad. If its in my code
I
can do testing and validating when he chages things.

Any help appreciated

Bob

Jun 21 '06 #3

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

Similar topics

1
by: revolnip | last post by:
As attached is the code : <% Option Explicit dim lngTimer lngTimer = Timer %> <!--#include file="Connect.asp" --> <!--#include file="Settings.asp" --> <!--#include file="Common.asp" -->
5
by: Klemens | last post by:
I get SQL30090 reason 18 by trying to do an insert in a federated table and an update in a local table in one transaction Do I have to change some settings to get done or ist this not possible by...
1
by: GOOD SOLUTION | last post by:
Here's a way to fix this. It does NOT require a reboot. And it does NOT drastically reduce security as the other, albeit useful, fix does. SOLUTION (for now): PROBLEM: The ASP.NET process...
5
by: Ken Cox [Microsoft MVP] | last post by:
MS has posted this here: http://www.asp.net/faq/ms03-32-issue.aspx Fix for: 'Server Application Unavailable' Error after Applying Security Update for IE...
4
by: Terry | last post by:
Hello, I am trying to get a response for an .aspx page in my current project (same virtual directory) by using WebRequest.GetResponse but I keep getting a exception with "500 Internal server...
1
by: amitbadgi | last post by:
HI i am getting the foll error while conv an asp application to asp.net Exception Details: System.Runtime.InteropServices.COMException: Syntax error in UPDATE statement. Source Error: Line...
0
by: Luke | last post by:
Hello All, Using the following delegate, and attempting to update the UI. There is no clear examples on how to pass multiple parameters though to the dispatcher. I keep receiving an exception...
2
by: bbasberg | last post by:
I have been working hard to clean up my code but I am still wondering why all incoming records go to the "AddNew" part of the IF statement and never to the Edit alternative. I believe that it must be...
1
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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.