VS 2008 Using Settings By Value?

Jan 22, 2012

Normaly it's the other way round, right?Just going "My.settings([name of setting])"But the thing is that I can't call my setting what I want.If u can understand the question, please awnser it.

View 13 Replies


ADVERTISEMENT

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

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

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

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

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

VS 2008 : Set My.settings.test To 0 Value?

Aug 30, 2010

how to set My.settings.test to 00.00 value every 24 hours?

View 25 Replies

VS 2008 : XML Settings And Data?

Aug 29, 2010

In your opinion what's the best way to write and read to a XML file if you want to insert random data to the file, like settings, and later on change, add or delete some of that data?

View 3 Replies

VS 2008 Application Settings?

Mar 8, 2011

Are the settings you create bundled with the application? Or are they written to some kind of file or the registry?If it is bundled in the assembly, I was thinking about at run-time of the application, getting the date, version and other system specifics and creating an encrypted value to write to the registry, but only if their "key" setting is "" or nothing.

If the 'key' setting is set, I could just go to the subkey I wrote the encrypted value to, and check to see if the application's 'key' setting matches that which is written to the registry. If not, then their trying to use their copy on another machine (bad).

View 2 Replies

VS 2008 My.Settings Where Are They And Are They Encrypted

Aug 5, 2009

I'm wondering with My.Settings, where abouts my program saves them, and if they are very secure or not, encrypted etc..?

View 2 Replies

VS 2008 Opacity Settings?

Mar 4, 2010

Is it possible to have a forms opacity at lets say 10% and have a picturebox on the form transparent but have its contents at 100% opacity? Because when i set the forms opacity to 10% it sets all its controls to 10% opacity.

View 2 Replies

VS 2008 Settings Not Saving?

Apr 5, 2009

I'm trying to save a setting I've defined under Project -> Settings -> FirstRun, type boolean, scope Application, default value, false,But it doesn't seem to work, this is my(the text box does not stop, every time I open the program it shows)

Private Sub Form1_Shown(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Shown
If Not My.Settings.FirstRun Then

[code]....

View 8 Replies

VS 2008 Where Is .Settings Data

Jul 27, 2009

Where exactly does a program save your My.Settings to?I took my program to work to do testing since I use it there mostly (but I create the program at home)I have a problem with my code that has locked my program from doing what it is supposed to do because of the settings.

View 10 Replies

Change IE Prxy Settings From Vb 2008?

May 25, 2011

How can I make a vb application which will cause IE to use a proxy server (localhost 8888) when the main form loads and undo this change when the main form is closed??

View 2 Replies

Get A List Of LAN Settings And Codes For VB 2008?

Apr 18, 2009

I need a list of LAN settings & codes for visual basic 2008

View 1 Replies

Vb 2008 - Saving Settings Of A Form?

Jun 12, 2011

how do I save settings of a form like its background color, fonstyle, sontsize etc. I cannot save them as string or text into my access database.

View 4 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 2008 : Change Settings Outside A Msi File?

Jun 1, 2010

I have created a Outlook 2007 AddIn project with a Setup project.The settings for a databae connection are in the registry.Now I want to create a config file outside the msi so the settings for the database connection can be changed before the addin is installed.It is no problem if the settings stay in the config file instead of the registry.I have googled around but found no solution yet.

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

VS 2008 : Code To Save Some Settings?

Feb 28, 2010

I created a form and a checkbox with default name in visual basic 2008 as i move mouse wheel, i can choose a picture for background image i can also change the checkbox's forecolor when i press any key on the keyboard and my first problem is i want to save the new background image which i has already chosen as i close my form and so does the checkbox's forecolor,move the checkbox to wherever i like and save this setting?

View 2 Replies

VS 2008 Change Firefox Settings?

Dec 31, 2009

How would I go about changing/retreiving settings for firefox in about:config in a form application?

View 2 Replies

VS 2008 Executable's Settings Not Remembering?

Feb 12, 2011

my project uses my.resources + my.settings, + both are working perfectly in debug, but when i move the exe to my desktop, some of the my.settings variables aren't saving. has anyone seen this before? i checked + my project is setup to save settings on exit...

View 1 Replies







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