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


ADVERTISEMENT

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

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

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

Adding App Settings At Runtime?

Mar 9, 2009

I have some questions on AppSettings. I can add a setting at design time from the settings tab of the My Project. I would like to add to the settings at run time. I have not found a way to do this. I would in VB6 use an ini file but would like to start using xml.

The .net makes this folder for the settings C:UsersRyanAppDataLocalTestAppSettingsAppSettings.vshost.exe_Url _0ay3fimqt4k0pp1s2e4vb3pi3iymxzx2 .
How do I retrieve the location to add to the xml file?

View 1 Replies

Adding Items To Settings?

Apr 19, 2009

I am trying to create a program that allows the user to add a series of items to 4 different user collection settings.here's what i have Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

[Code]...

I keep getting an "Object reference not set to an instance of an object." exception. What am I doing wrong?

View 3 Replies

Adding Combobox To ProperyGrid From Settings?

Aug 22, 2010

Not too familar with the propertygrid control.But I have two comboboxes that need to be added to it from my.settings. How do i setup both My.Settings and then link it into the propertygrid?

The dropdowns will be named "Location" with 5 values, and the second called Hourly/Salary with 2 values.

This would be part of my larger application where the user selects these values and then logs in.

View 2 Replies

Adding Data From My.Settings To A ComboBox?

Sep 23, 2009

Well basicly I have been trying trial and error, and im sure this is a very simple fix, but how would I populate a ComboBox with information from My.Settings using VB.Net.

View 6 Replies

Adding A Browsing History With User Settings?

Apr 2, 2009

I'm creating an open-source web browser in VB.NET and I'm trying to load the browsing history from My.Settings.History (StringCollection) and list the items in a listbox, but only the first item appears.

Here is the code I am using:

Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

[Code].....

View 14 Replies

Saving / Adding ListBox Items To Programs Settings

Mar 13, 2011

I am trying to be able to add everything within a listbox to a program setting that can be re loaded when its opened up again, I have the part to load them upon opening, but I don't know how to make it add all the items within the listbox to the setting, so it has something to load.

This is to load them on startup:
For Each item As String In My.Settings.logs
log.Items.Add(item.ToString)
Next

View 4 Replies

Add Custom Settings To The My.Settings Namespace

Mar 18, 2010

Add custom settings to the My.Settings namespace

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

Create Dynamic Settings Using My.Settings?

Apr 7, 2010

it is possible to create dynamic settings using My.Settings.For example, a person clicks "Add User"The program then creates the settings for that user, it creates User(DYNAMICNUMBER)FN, and User(DYNAMICNUMBER)LN. Where Dynamic number is the next user for no conflicts in the settings. Is this possible? So that you can save multiple users for example?

View 2 Replies

Reset User Settings In My.Settings?

Jun 29, 2010

how to reset user settings in My.Settings to the default value, because when i checked if the user settings works i have altered the settings so now i want the settings to go back to default, because i am going to distribute the software.

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

Saving Printer Settings In My.settings?

Jul 15, 2009

I'm having trouble getting the objects of the PageSetupDialog and the PrintDialog to persist in my.settings Is there an example of this anywhere? Seems like it should be something there is a boiler plate for so I can see where I have gone wrong.Added a System.Drawing.Printing.PageSettings and System.Drawing.Printing.PrinterSettings entries in my.settings but even trying to save these form the results of the dialogs they show as nothing with out a error.




View 6 Replies

Store Three Items In My.Settings / Where Are My.Settings?

Jun 28, 2010

I store three items in My.Settings. One is a serialized string, and the other two are GUIDs. When the main form starts, those three items are loaded into various places. On rare, and so far unpredictable, occasions, one of these GUIDs is notably absent. The others may or may not be, I have yet to be able to check. Since it happens so infrequently (twice this month, though I have been working on the code every day), I'm having a very hard time tracking down the problem. However, it got me wondering where these values are stored. I see one of them showing up in App.Config, though without a value. Is there a place I can see the others?

View 13 Replies

Change Class Library's Settings From An Another Program?

Apr 8, 2009

I want to change my class library's settings from an another program. For this, I've made a Public property in my class library. It worked right. But this is not my question. I wonder this is a right method? Can I access a class library's settings (My Namespace) from other project directly?

[Code]...

View 4 Replies

Class Library Config Files And My.Settings

May 19, 2010

Say I have a Class Library project with its own .dll.config, and a forms application. I want to confirm that it is impossible to reference the .dll.config file from the .exe.config file and still use My.Settings.

For example: I have SomeClassLibrary project, with SomeSetting that I can access through My.Settings.SomeSetting. I also have SomeFormsApp project. This is what I want my SomeFormsApp.exe.config to look like:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>

[Code].....

From my readings, this seems impossible. I either need to copy the content of SomeClassLibrary.dll.config into SomeFormsApp.exe.config, which is tedious and error prone when copying from multiple class libraries, or I need to use ConfigurationManager, which bypasses My.Settings and its typed, Intellisensed goodness.

View 9 Replies

Class Library Getting Settings From Own App.config NOT The Application's?

Jun 2, 2009

I'm having trouble with my application settings and I'm wondering if anyone else has seen this.

I have a Librabry with a connection string. In the project for the library it has its own app.config:

<configSections>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="OBInfrastructure.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</sectionGroup>

[Code]...

View 1 Replies

CryptoStream Class - Any Way To Save Key In Application Settings?

Aug 11, 2009

I am starting to use cryptostream class. I may be wrong, if you encrypt something, close the app, and then try to decrypt it, it will not be able to because a different key will be generated. Because I do need this functionality, I am wondering if it's possible to save the key in application settings and whether this is the right way to go?

View 2 Replies

IDE :: Vb 2008 Class Library Settings Disappear?

Mar 12, 2011

Solution has 3 Class Libraries and 1 Windows Form application projects. For no apparent reason, one of the Class Libraries keeps loosing its Settings. These are primarily configuration strings. When I try to add them back in the IDE, they disappear again without explanation.

View 5 Replies







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