Questions tagged [my.settings]

70 questions
17
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
  • 6,344
  • 25
  • 70
  • 114
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
  • 17,150
  • 31
  • 162
  • 376
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
  • 6,917
  • 5
  • 48
  • 60
4
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
  • 20,847
  • 6
  • 69
  • 105
4
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,156
  • 6
  • 22
  • 55
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
  • 711
  • 1
  • 6
  • 25
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
  • 10,935
  • 5
  • 48
  • 86
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
  • 860
  • 5
  • 32
  • 65
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,433
  • 7
  • 34
  • 57
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
  • 13,626
  • 23
  • 67
  • 109
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,229
  • 20
  • 69
  • 114
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…
2
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
  • 654
  • 6
  • 17
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
  • 17,150
  • 31
  • 162
  • 376
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
  • 860
  • 5
  • 32
  • 65
1
2 3 4 5