Questions tagged [my.settings]
77 questions
0
votes
1 answer
My.Settings wont save when application closed
The issue I'm having is that my settings don't seem to save when the project has ended.
My project consists of a FrmMain, and FrmSettings
Code is as follows:
FrmMain: The settings should load when the main form loads
Private Sub…

level42
- 946
- 2
- 13
- 33
0
votes
1 answer
Reset My.Settings to values last saved
I'm currently using a "Settings" form to set various settings for my application. What I'm trying to do is to revert settings back to before any changes the user has made before opening and changing a field. I have a text box with a data binding to…

weekendclimber
- 25
- 5
0
votes
1 answer
Using My.Settings Variables within Crystal Report
I have 2 Settings in my.settings within my vb.net Project called
my.settings.company
my.settings.tel
and I would like these to be displayed at the top of my Crystal Report.
I tried using the Database Expert within my report and added the .NET Object…

Rob4236
- 375
- 1
- 7
- 12
0
votes
1 answer
How to remove line from System.Collections.Specialized.StringCollection in vb.net
I want to remove a line or a text from my application settings .
example: My.Settings.Bookmarks.
here is information in my settings of Bookmarks:
Name: Bookmarks | Type: System.Collections.Specialized.StringCollection | Scope: User.
Can anyone help…

Nadhmi Prince
- 27
- 3
0
votes
1 answer
My.Settings Serialization, custom object?
I am having a problem saving an arraylist of a object I created. I implemented ISerializable and I can manually use Xml.Serialization.XmlSerializer to serialize and deserialize it.
When I add it to my arraylist and use the save method it doesn't…
0
votes
1 answer
VB.NET one function to load app and default settings
VB2010. I am trying to create one routine that will load all settings into a form with maybe like 50 controls. The first case it load all the user defined settings. The second case loads all the app default settings. I recently found that my routine…

sinDizzy
- 1,300
- 7
- 28
- 60
0
votes
0 answers
Some User-scoped My.Settings string propeties are blank upon startup
VB.Net, WindowsForm: I have six user-scoped strings configured in the project Settings tab. If I do a Debug.WriteLine for these immediately in the Form Load event of the project's startup form, some strings print correctly, but others print as "".…

John
- 225
- 9
- 21
0
votes
1 answer
VB.NET Trying to read a System.Collections.Specialized.StringCollection in My.Settings returns an InvalidOperationException
In my vb.net project i've created the following settings with the built-in settings manager from visual studio:
appVisible (Boolean)
saveFusedFiles (Boolean)
colors (System.Collections.Specialized.StringCollection)
separators…

CiniMod
- 43
- 6
0
votes
1 answer
Make ElseIf Statement Check Strings
I would like to know, how to make ElseIf statement check if a string in a textbox equals to the string in My.Settings.Something?

TheCreepySheep
- 125
- 1
- 5
- 13
0
votes
1 answer
Saving/Loading My.Settings with ListView Control - vb.net
I am making a game in Visual Basic that has to contain a high score table.
I am using a ListView control named lstscores to store rows of scores in 2 columns called Name and Score.
The user has to guess words that are entered into a ListBox called…

Paul B
- 199
- 1
- 4
- 13
0
votes
1 answer
Keep My.Settings Always VB.Net
I have an application and I need to always have the my.settings saved. I notice that they get cleared whenever you change the files location, or run it on a different computer. Are there any ways to prevent this. It also happens when the application…

user210009
- 1
- 2
0
votes
2 answers
A way to save a specific My.Settings Variable in VB.NET
in My.Settings i've alot of variables including a 36000 records Datatable and Couple Large Array Lists, now when i call My.Settings.Save() it saves all the variables which takes alot of time and it saves variables that haven't been changed, is there…

user1570048
- 880
- 6
- 35
- 69
0
votes
1 answer
How would you access a specific index in a My.Settings ArrayList using String Format
i've an ArrayList Saved in My.Settings
i am trying to Access it using some string, Here is the code so you get what i am trying to do
If listBoxEdit1.SelectedIndex > -1 Then
My.Settings("Sup" & listBoxEdit1.SelectedIndex + 1 & "(1)") =…

user1570048
- 880
- 6
- 35
- 69
0
votes
1 answer
My.Settings.Save debugging clean
I am trying to create a string1 in My.Settings and used the My.Settings.Save method and it is working perfect. The problem is that the default value is "My Name is X" and the given saved value at runtime is "My Name is Z", when the next time I run…

surpavan
- 1,372
- 7
- 34
- 66
-1
votes
2 answers
Using my.settings system.drawing.size and textbox.text
Problem:
I want to change the size of the panel and save it so the next time I open the program it will keep the size of the panel. Because of this I manage to use my.settings with type of system.drawing.size
However I am having a problem on…

Cary Bondoc
- 2,923
- 4
- 37
- 60