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


ADVERTISEMENT

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

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

[2005] Settings Save Even If Re-located?

Mar 12, 2009

I always wondered, but is there a way to get My.Settings to save even when you move a program, such as copy it to another location? Maybe its just me but whenever I use My.Settings in an application, copying it into a different directory will reset all the settings, which kind of sucks.Is there anyway to get the values to stay in the application no matter what? If not My.Settings, than is there any way to store a value to a program so that you don't have to use external files, but so that it will remember the settings even when copied?

View 8 Replies

VS 2005 Save Settings Database Connection And ComboBox Selection?

Jan 15, 2010

I have a program that reads a database file(.csv or.Txt) then allows user to select data from 6 different comboxes and taext boxes are then populated based on the selection made from combobox

I would like to be able to give the user the option to save their settings so next time the program is open it will connect to the same database as the last connection and also have comboboxes go to the last selection Do I have to create a save setting value for each combobox? and the connection string?

is there a simple way to just save everything? so when the program is open it goes back to the last time it was open.

View 11 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 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

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

Save User Settings Using My.Settings?

Jun 8, 2010

how i can save user settings in vb.net

i have a project with different buttons when a user clicks a button the image of PictureBox1 will change.

i want to save this image that the user has chosen after he closes the application, so it will be displayed in PictureBox1 when loaded.

i am using Microsoft Visual Basic 2010 Express

the languge is VB

View 5 Replies

VS 2008 Removing My.Settings - Uncheck The "save My.settings" On Shutdown?

Sep 27, 2009

I set up some application settings for checkboxes on an app and then decided to remove them. When I set the Application Settings to (none) in the designer and restarted the app, the checkbox constantly checks and unchecks itself. I completely remade the app and removed the file that is used to store my.settings in the Local folder of the user's appdata profile. I also made sure to uncheck the "save my.settings" on shutdown.

View 6 Replies

Save A Collection Of Key/value Settings In My Application's "user Settings"?

Apr 14, 2008

I'm trying to save a collection of key/value settings in my application's "user settings" (they're column widths), but while I see no errors, when I run the code (in the IDE) my collection in "My.Settings" is always nothing at startup. I do a "My.Settings.Save" when the application exits, and barring the "serializers not found" errors in the IDE, no other errors occur. When I run my application as an exe, it behaves the same way..

View 7 Replies

Code To Save File Is Not Working - Using The Click Event Of A The Button Save?

Jun 10, 2010

Dim sw
As StreamWriter
Dim flagX
As
Boolean

[code]....

View 3 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

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 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

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

Best Way To Save Settings?

Jul 4, 2009

For example. I have 5 checkboxes. If a user selects one next time the application is loaded it remembers what is checked

View 5 Replies

How To Save Settings

Mar 17, 2011

Here is my code as I have it

Code:
Public Class Form1
Dim OpePro(7) As String
Dim FN As String
Dim NPB_1 As Button

[code]....

How do I save the new buttons and their properties?

View 14 Replies

How To Save Settings In .net

Feb 23, 2011

How to save the settings that my app uses ? should I use sql, xml , access or any other flexible & easy way.

View 2 Replies

Save It To The Settings Of The App?

Mar 1, 2010

I have a queue that i want to save it to the Settings of the app, what type do i use to save it? I dont see a system.collections.generic.queue

This is the queue Dim dlQueue As New Queue(Of ListViewItem)and the Settings My.Settings.dlQueue

View 5 Replies

Save Settings In VB?

Aug 28, 2009

Does anyone know of a good way to save settings in vb.net?

The only way I know how to do right now is to make a registry key with a specified value and call upon it when the program loads up again.

I can't do this though because I have a whole lot of data I have to save.

can you save the data in a notepad and call it line by line to save each feature?

View 12 Replies

Why Won't VB Save App's Settings

Jun 8, 2012

It's just a login form that is supposed to save your connection settings, but it won't save my values; they revert to the previous values every time I run the program. Does the IDE just not save your settings, or am I doing something wrong?

Public Class frmLogin
Private Sub cmdSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSubmit.Click

[Code]....

View 2 Replies

How To Save App Settings To Registry

Apr 24, 2009

It saves the settings to the registry, loads the preset settings, and if you want to uninstall the app, you can use the delete settings, which deletes the registry folder for you app.

Here's how:
create a form, 1 textbox, 2 check boxes, 3 buttons named as (setbtn, getbtn, delbtn)
'1 textbox, 2 check boxes, 3 buttons as setbtn, getbtn, delbtn
Imports Microsoft.Win32
Public Class Form1
Dim reg As RegistryKey = Registry.LocalMachine.CreateSubKey("SoftwareMyApp", RegistryKeyPermissionCheck.ReadWriteSubTree)
[Code] .....

View 4 Replies

Load And Save Settings?

Jan 26, 2009

I wanna save and load my color selected by ColorPicker like this[code]...

View 9 Replies

My.settings Save On Server?

Jun 25, 2010

I want to create a back up of my.settings in the cloud. How would I go about doing this?

View 2 Replies







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