473,657 Members | 2,451 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 13129
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*******@gmai l.com> wrote in message
news:11******** **************@ r2g2000cwb.goog legroups.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
2236
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
3330
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 definition? Thanks Klemens
1
297
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 runs under the "ASPNET" local user account. After installing the updates, it is required that the ASP.NET process have read access to the folder:
5
2781
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
7223
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 error" in the exception message. I am able to do this fine with another .aspx page that has no code-behind. The page that has code-behind throws the exception. What I am doing is getting the .aspx response, reading the stream, replacing
1
3087
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 112: MM_editCmd.ActiveConnection = MM_editConnection Line 113: MM_editCmd.CommandText = MM_editQuery Line 114: MM_editCmd.Execute
0
1907
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 (shown below). The code works if you invoke a method that only has one parameter, however it should work with multiple parameters. Maybe I am missing something simple. -------------- CODE FOLLOWS --------------
2
2329
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 because my rs.index never really receives the value from the cell in the spreadsheet that it should use to compare to the corresponding field in the Access DB. I have named the field "rtitle" in Access and made it an index called riskIndex. I am an...
1
1824
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.....
0
8305
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,...
0
8823
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, 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...
0
8726
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7320
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, 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...
0
5632
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();...
0
4151
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1944
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1604
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 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...

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.