Changing Settings.settings Not Working

Apr 19, 2012

I can double click on the Setting.settings and the projects Settings grid appears in design. I change the value of a user scope setting yet when I run the application in debug it picks up a value I set initially instead of the current value of the setting.

When the app starts I set a connection string to the path of the .SDF file that I set in the Settings.settings grid and accesss it with

mRootSDFPath As
String =
My.Settings.SDFConnectionString

[Code].....

View 6 Replies


ADVERTISEMENT

Changing Me.Settings Without Reload

Nov 2, 2011

I have a setting labeled "Names" and in the program I can create a new "Names" value, which works fine. But, I want to be able to automatically save to this new "Names" and retrieve information from the value without having to close the program and reopen it in order to have the new setting saved. Is there a way to do this? I tried using the Me.Refresh() command, but it didn't do the trick.

View 2 Replies

Changing Internet Proxy Settings?

Nov 25, 2009

How to do so in vb.net? In vb6 you do this [URL]... but then there is this as any and I wonder how to pass on the address of an object to the API also how to modify the program so we can put user authentication and password in VB using InternetSetOption

[Code]...

View 2 Replies

Changing Printer Preferences & Settings

Apr 2, 2010

I have to drive files using different settings from the printer driver. Can I change the preferences & settings of the driver from a VB application? Right now I am using a VBScript, using key presses, to drive the files. I am developing an application using VB.net. I want to get away from the key stroke method. It takes to long to drive all of the files at the different printer driver settings.

View 2 Replies

VS 2008 : Changing My.Settings Value During Runtime?

Sep 4, 2009

How do I change my code so that it will change the Value of the My.Settings.* to what TextBox1.Text is

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If RadioButton1.Checked = True Then
My.Settings.Acc1 = TextBox1.Text And My.Settings.Pass1 = TextBox2.Text

[code]....

View 2 Replies

My.Settings.Upgrade Stopped Preserving Settings After Visual Studio And Framework Were Upgraded?

Jan 13, 2011

The company has been using Visual Studio 2008 and .NET Framework 2.0 for approximately 2 years. During that time we released several versions (4.x.x) of our program to the public and were able to preserve the user's settings using My.Settings.Upgrade.During the past development cycle we upgraded the program to Visual Studio 2010 and .NET Framework 4.0 and changed the version to 5.x.x. Now, when a user upgrades from 4.x.x to 5.x.x they lose all of their settings.However, in all upgrades after that point (ie 5.0 to 5.1) all the user's settings are once again preserved.I checked C:Documents and Settings<USER_NAME>Local SettingsApplication DataCompanyName and it contains two directories:

ApplicationName_Url_aaa ApplicationName_Url_bbb

where aaa and bbb are 32 character strings. All of the user.config files for the 4.x.x releases can be found in the ApplicationName_ Url_aaa directory. All of the user.config files for the 5.x.x releases can be found in the ApplicationName_Url_bbb directory.Based on this information it seems like something changed when we converted our program to VS2010 and Framework4 that is now causing a different 32 character string to be generated. However, we have been unable to track it down.

View 9 Replies

Unable To Make Some Settings And Load The Result Of The Settings Via LinQ Into The Grid Of The UscStat?

Jan 3, 2012

I have the following structure:OLD: frmMain (WinForm)uscStat (UserControl with Grid) In frmMain I'm able to make some settings and load the result of the settings via LinQ into the Grid of the uscStat.

[Code]...

View 1 Replies

Application.Settings VB 2005 - Save Arrays Using The Settings System Object

Jan 14, 2009

I just wondered if you can or can't save arrays using the settings system object. There seems to be no way of entering it at designtime. It seems implied you cannot create new user settings.subobjects at runtime. I'm looking to find the easiest way to save a populated array of PictureBox's. If the only way is a self/custom made/managed .ini file then I need to know so i can start on that but I was hoping to use some of all this phaff in the new frameworks usefully.

View 3 Replies

ClickOnce Overwrites User Settings Settings .NET 2008 Cant Use Registry UAC Causes Error

Aug 5, 2009

I am rewritting my application to conform to ms standards. We used to save all settings to registry for user settings, servername, size and locations.so we are now saving them into My.Settings app.config the only problem is that each time there is an update clickonce will isntall the newupdate but now all settings are loist and user has to save everything all over again..

I am trying to follow the book here but it seems i keep getting stuck somewhere. registry has worked fine for years but i understand we must move on, but if stuff like this happens then i just wasted a long time converting all code to conform for it to not work..

View 1 Replies

How To Maintain Application Modified Settings In The Settings Files After A Program Update

Sep 8, 2009

Is there a way to maintain application modified Settings in the settings files after a program update? i.e. I have 10 or so values in the settings file and the users can modify them... when I send a program update they revert back to what I initially programmed them to be.

View 3 Replies

Application.restart After My.settings.save Doesn't Load The New Settings

Feb 8, 2008

i have created a user setting named 'setmeup' as string, scope = user, value = "magical meow meow!".in my code i access it and assign it a new value like this...my.settings.setmeup = "howdy cowboy!"my.settings.save()application.restart()when the application restarts, i expect the my.settings.setmeup = "howdy cowboy!" but when i check its contents its still "magical meow meow!".but when i use application.exit() instead of application.restart() and manually restart the program, my.settings.setmeup = "howdy cowboy!" which is correct.what must i do? i want to use application.restart() because i don't want the users to double-click the icon again to start the program. i want the program to restart automatically.

View 2 Replies

VS 2010 - My.Settings - Can't Find File Which Reflects Changes To User Settings

Apr 15, 2011

1. I can't find the file which reflects changes to user settings. This might be because I just can't find it (I can see a bunch of user.config files but they are all empty - weird!), or...

2. I'm not actually saving them when I think I am.

Regarding 2. - do I need to invoke

Is this all I need? And if so, why are my user.configs empty?

View 1 Replies

VS 2010 Save The Treeview Items To Settings (my.settings.history)?

Mar 25, 2011

I'm working with an Treeview and i'm new at it and i have 2 questions.

1. How can i save the treeview items, to settings (my.settings.history)

2. How can i save the treeview items as an TXT or XML file or another exception.

View 13 Replies

Settings Is Readonly/ Changing Connection String?

Mar 2, 2006

This is regarding a windows app in Visual Studio 2005, a VB Windows application.'ve stored a connection string called strSQLConn in My.Settings. I'm trying to change the Server in code. I set a string variable called strConn to a new Connection string. My.Settings.Profile2006sql = strConn

This produces an error saying that My.Settings is readonly. I'm missing something basic here.

I don't know if this is the best way to change a connection string to toggle between a development server and a production server. My understanding is that if the setting Connection string is changed it will be used as the default for all the table adapters in a strongly typed dataset. Is that the case?

View 10 Replies

Difference Between Standard My.settings And Adding A New Class That Is Of Settings?

Mar 3, 2009

my old vb6 program used to store to ini files now with .net I rekon I need to do something new.. was thinking XML but then in searching around I stumbled apon this my.settings stuff.. so I followed the instructions but something strange is going one..

1. whats the difference between the standard my.settings and adding a new class that is of settings ? anything ?

2. I made 10 new settings in the setting manager but when I try to change then it gives me the old squiggle line saying no go.

View 15 Replies

VS 2008 Settings Are Read From App.config Instead Of Settings-file

Oct 30, 2009

I have created a settings-file for my plug-in-based app. When the mainApp writes the settings to the file, the pluginApp should read the settings from the settings-file (when opening or at runtime even better), but somehow it reads the settings from the app.config-file. This means that the pluginApp never will read the settings according the values of the file.

View 4 Replies

.NET 2.0 .settings Not Working Properly?

Oct 18, 2011

I don't even know where to begin describing this. I have a project, that uses settings, for some paths, settings that I retrieve with the My.Settings. function.In my laptop, when I change the .exe.config file, the settings are updated accordingly, but when I try that on the production server, it just shows the default value used while compiling.

I tried changing the solution configurations to debug and other custom configs with no effect.Tried to use the same folder copied and pasted without version control, still the same result.Tried a co-workers laptop, by using the last svn revision, it works there too. But on neither of the servers works.

View 1 Replies

My.Settings Is Not Working Properly

Oct 1, 2011

I have some System.Collections.Specialized.StringCollection 's in my.settings and the won't do anything: I have tried adding things to them and I get a null reference, now I have used these before and they worked fine I have tried reading from them, like I have in the past, and it dosen't read anything; the strings come out emtey as in one emtey string when there is three full strings

[Code]....

View 1 Replies

My.Settings.Reload Not Working

Jun 15, 2011

I have a application that requires access to a tablet, the tablet in order for it transfer data accurately needs to be calibrated from time to time. Users have expressed intrest that once calibration has been done and has been validated to be correct that
those new settings be ready for use in the main application. However, the only way I have been able to do this is to physically re-start the application. I have not had any luck with My.Settings.reload(). The settings I can confirm have changed but the application after saving them and calling the reload do not reload them. Am I doing something wrong? Does reload only work under certain conditions?

View 4 Replies

Settings.Reload() Not Working

Dec 19, 2011

I am implementing a mechanism to detect a corrupt user.config file in vb at application startup.

I do this at the start of the application before initializing anything.

If an exception is thrown while trying to access it, I replace the file with a backup last known good copy.

After replacing the bad file and physically checking that we have a good file I run the code :[code...]

View 1 Replies

User Settings Not Working?

May 16, 2012

So, I've created a form that allows for the user to save his or her settings after closing it. When using Visual Basics to run the program, there is no problem and it works wonders.Here is the problem.When I run the program not in Visual Basics, when I go to open the form, it fails. At first, it was because I didn't update the configuration file to include the new settings. Which was dumb, of course, but I updated the file and made sure to put it with the program.

View 2 Replies

VS 2008 Using 'Settings File' (Settings1.settings)

Aug 5, 2009

I saw that you can also use a "Settings File" (Add new Item)to add your settings instead of the application settings. But I can't seem to write any values to the file. Someone with experience with the "Settings1.settings"?

View 2 Replies

VS 2010 - Settings.settings Saved Into The Registry?

Jun 11, 2010

Small questions about the settings.settings. Are these settings saved into the registry? I'm want to use and external file for my connection-commands. I don't want to use the registry to store the strings. What do you recommend?

View 11 Replies

DPAPI Encryption Not Working So Well With My.settings

Aug 19, 2009

when my.settings.datastorage has nothing in it, this works fine. but after i go through this twice, it gives me an error

[Code]...

View 1 Replies

User Settings Not Working On Form

Jun 3, 2011

So, I've created a form that allows for the user to save his or her settings after closing it. When using Visual Basics to run the program, there is no problem and it works wonders. When I run the program not in Visual Basics, when I go to open the form, it fails. At first, it was because I didn't update the configuration file to include the new settings. Which was dumb, of course, but I updated the file and made sure to put it with the program.

However, when I opened the program again, it failed. So, I tried putting an error message in the form so I know why it failed. This time, it would come back saying "Error Occurred. The Following Error Occurred:" and that is it. No details at all why it was having any problems reading my new user settings. Once again, the user settings work fine in visual studios. It has the updated configuration file in the same place it is.

View 1 Replies

VS 2005 : My.Settings.Save() Not Working?

Oct 28, 2009

I've updated my settings via:

My.Settings.SomeString = "new text"

then I call

My.Settings.Save()

When I check the .config file, the entry under

<userSettings>
<BE.IS.My.MySettings>
<setting name="SomeString" serializeAs="String">

[code]....

... the value remained the same, unchanged.1 thing though, my app is started via Sub Main() in module file, instead of "Enable application framework". Does this affect the saving of Settings file?

View 5 Replies

VS 2008 - My.Settings Are Not Working With The Labels?

Oct 2, 2009

My Form closing

[code]...

Note: I tried this with a textbox and it worked. The Textbox text was the labels closing, but when I used this with label, it didnt work.

View 1 Replies

VS 2005 Appliction Settings Not Working Properly?

Mar 29, 2010

I am using VB.NET 2005 and running non embedded crystal reports from the SQL server and have following variables database name, server name, user name and password in the application settings editor and given the default values.

I have created a form that allows these settings to be changed by the user and the probem that I am having is that, the reports are still running with incorrect credentials. The following code runs when the user modifes the values and clicks OK button

[Code]...

View 3 Replies

My.settings Not Working When Application Is Opened From Startup Shortcut?

May 30, 2011

I am a beginner using 2008 Express and I am trying to get my application to remember and restore some combobox values. It seems to work fine if the application is opened and closed normally but for some reason it loses the settings if it is opened from the startup folder.

Here is how the startup link is formed:

Dim shortcutFile As String = Environment.GetFolderPath(Environment.SpecialFolder.Startup) & "FBNav.lnk"
If Not IO.File.Exists(shortcutFile) Then

[Code]....

View 2 Replies

Add Custom Settings To The My.Settings Namespace

Mar 18, 2010

Add custom settings to the My.Settings namespace

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved