Questions tagged [my.settings]
77 questions
18
votes
4 answers
Where are My.Settings saved in VB 2010 .NET?
Are My.Settings values saved in the program itself or do they get stored in the registry? So, for example, if I set a My.Settings value with a program, then I copy the program itself to another PC - is the My.Settings value still set?

Florian Müller
- 7,448
- 25
- 78
- 120
10
votes
2 answers
Define a custom path where the user.config file should be saved?
If I rename my compiled application for example from myapp.exe to app.exe then when I run the renamed executable a new user settings folder is generated in this path:
C:\Users\{User}\AppData\Local\{CompanyName}\{ExecutableName}_Url_{SystemGUID or…

ElektroStudios
- 19,105
- 33
- 200
- 417
5
votes
3 answers
Adding Editor / EditorAttribute at Run-time (Dynamically) to an Object's Property
How to add the EditorAttribute (Editor) to an object's property at run-time?
I have My.Settings.ExcludeFiles, which is created by the settings designer as Public Property ExcludedFiles() As Global.System.Collections.Specialized.StringCollection.…

AMissico
- 21,470
- 7
- 78
- 106
5
votes
3 answers
VB.NET get default value from My.Settings
VB2010. I understand how to save settings and load them from the My.Settings namespace. What I am trying to figure out is how to get the default value of a settings and present it to the user. I don't want to save the setting I just want to show…

sinDizzy
- 1,300
- 7
- 28
- 60
4
votes
1 answer
Best Way in VB.Net to Use Generics for My.Settings Persistance?
Can you improve upon this generic?
I'm trying to reduce code bloat, reduce errors and simplify codebehind by use of generics. In this case I'm applying generics to declaration of persistable properties. Persistance is implemented by My.Settings.…

BSalita
- 8,420
- 10
- 51
- 68
4
votes
1 answer
Run child process non-elevated from an elevated/As Admin process
My application has a built-in self update system via another app called "updater.exe" which is in the same folder with the main application to update. It downloads the newest version, terminates the old one (if it's running) and then overwrites…

Roni Tovi
- 828
- 10
- 21
3
votes
1 answer
.NET User Settings - Different for DEBUG and RELEASE Modes
I am hoping there is a solution to my issue with Application Settings. Each time I upgrade this application (WPF Desktop Application) I want my user settings to be persisted. To Achieve this I use the following code in my Application_Startup…

Aaron Glover
- 1,199
- 2
- 13
- 30
3
votes
2 answers
Inner workings of .NET – can be built-in settings loader reached by code?
I joined a project where .NET Windows Forms application is using Settings mechanism (Project > Properties > Settings) to preserve both user settings and application settings. I have created command-line tool which uses LoadAssembly(

miroxlav
- 11,796
- 5
- 58
- 99
3
votes
1 answer
Resetting My.Settings variable to Default values
How can i reset the my.settings variables that i've changed during debugging the application?

user1570048
- 880
- 6
- 35
- 69
2
votes
3 answers
my.settings and descriptions? And getting them into a propertygrid?
I recently learned of the propertygrid object usage with the my.settings object for a project. I like this very much and I was wondering if there is a way to include descriptions with my settings so that they will be included in the propertygrid in…

TWood
- 2,563
- 8
- 36
- 58
2
votes
1 answer
Best way to bind My.Settings to a datagridview, so end user can modify?
How can we databind a datagridview to some of the My.Settings (user scoped) properties so the user can edit the values? This must be to a datagridview. I know we can bind to My.Settings in a form with textboxes and so on, but in this case we just…

hawbsl
- 15,313
- 25
- 73
- 114
2
votes
1 answer
How to save ComboBox items in My.Settings, and display/edit with textbox
I'm trying to do the following:
Store items from ComboBox in My.Settings (datatype doesn't matter, but need suggestions).
Retrieve these items to populate a ComboBox on formload.
Also display these items (1 item per line) in TextBox, where I can…

MAW74656
- 3,449
- 21
- 71
- 118
2
votes
1 answer
Autocreate user.config file in deployed app
I'm coding a VB.Net AddIn for outlook (hence its VBA with .NET). It's an addition to the standard Calender Item screen. Everything's going fine. But i have a third form with two textboxes, that show me the filepath of the running assembly and the…

Christian Hase
- 31
- 5
2
votes
1 answer
My.Settings does not save an ArrayList
I've set this emptyness property:
But after assigning a new ArrayList object to the property, the property always still empty in every application execution.
In a handler of MyBase.Load event I do a call to this method, just for testing this…

ElektroStudios
- 19,105
- 33
- 200
- 417
2
votes
1 answer
VB.NET My.Settings Datatable is not saving
i have a datatable that i want to save to a My.Settings Datatable However when i reopen the application i find that the table is not saved
My.Settings.Datatable = someDatatable
is there something wrong with the above statement or something else…

user1570048
- 880
- 6
- 35
- 69