Questions tagged [my.settings]
77 questions
0
votes
1 answer
Saving a list to My.Settings
I am trying to save a list variable to My.Settings, but I cannot find a type that works. I am using Visual Studio 2017. Here is how I built the list...
Dim Parameters As New List(Of String)
Parameters.Add("Item1")
Parameters.Add("Item2")
The error…

Sinusoid
- 31
- 3
0
votes
1 answer
How to save drawing to PrintDocument Item on My.Settings?
Is there any way to draw on System.Drawings.Printing.PrintDocument item in My.Settings, lets name it as LastDocument.
I found that we can set it as same document of other PrintDocuments on Application forms which doesn't help me in this case. What I…

Mohammed Julfikar Ali Mahbub
- 952
- 2
- 11
- 34
0
votes
4 answers
How can i do a for loop with vb.net's my.settings name and value?
i would like some help with this, i have tried searching on google and have tried searching here with no luck.
what i have tried so far is the following:-
For Each value As Configuration.SettingsPropertyValue In My.Settings.PropertyValues
Dim…

Danny James
- 244
- 3
- 16
0
votes
1 answer
Can't save type System.Version to My.Settings
I have a small test project for checking application version from a server and prompting a user to update. Everything works fine except that I can't save a type of System.Version to My.Settings. (I want to save the new version in case a user…

SteveCinq
- 1,920
- 1
- 17
- 22
0
votes
1 answer
How to remove My.Settings data
I've set 4 objects into MySettings (Usr1, Usr2, Usr3, Usr4) as System.Collections.Specialized.StringCollection.
I give values to it this way (and it works):
For x As Integer = 1 To 4
If My.Settings.Item("Usr" & x.ToString) Is Nothing Then
…

genespos
- 3,211
- 6
- 38
- 70
0
votes
0 answers
VB.NET Some computers delete My.Settings
I made a windows forms application using vb.net and I'm using My.Settings to save some of the application settings (such as product keys and activation status)
Everything was working just fine until I found out that some computers for some reason…

Adan Sandoval
- 436
- 1
- 6
- 18
0
votes
0 answers
My.Settings for multiple users
I am building an application (vb.net and MySql) in which multiple users (using multiple computers) can add tasks.
In order to get a new number for each task they add, i have created a value in My.Settings (lets Call it TaskNumber)
The main idea is…

RobinHud
- 11
- 9
0
votes
1 answer
sampleVariable As Boolean = My.settings.sampleSettings (boolean dataType) doesn't work
I have a 2 scenarios that involves using My.Settings.sampleSettings with a dataType boolean and a sampleVariable as data type boolean.
Code: Since both sampleVariable and sampleSettings are boolean I declare them like that
Dim sampleVariable As…

Cary Bondoc
- 2,923
- 4
- 37
- 60
0
votes
1 answer
How can I convert system.drawing.color back to a string?
I have this code in Visual Basic working fine which saves a color that is selected from a ComboBox.text to My.Settings which is set to system.drawing.color.
My.Settings.SpecialColor = Color.FromName(ComboBoxSpecialColor.Text)
I am having…

Darryl
- 45
- 1
- 7
0
votes
1 answer
Load all my.settings to textboxes in Visual Basic
I am trying to load all saved my.settings to my textboxes but I am unable to retrieve the saved values. Here is my code
Dim ctrl As Control
For Each ctrl In Me.Controls
If (ctrl.GetType() Is GetType(TextBox)) Then
Dim txt As…

lorens13
- 1
- 1
0
votes
0 answers
Saving class without empty Constructor to My.Settings directly works, but not as member of custom class?
I'm aware that members of custom classes are subject to the same requirements as the class itself when they're supposed to be saved in My.Settings. One of those requirements is that the class - and all its members - have an empty constructor. Now, I…

Yuri
- 1
- 1
0
votes
0 answers
Unable to Save My.Settings DataTable
I am unable to save the contents of my DataTable "dtable" The scope of this Setting is USER, however although it saves it while the program is running. When I launch the program and re-load My.Settings.Sales_Mapping it is empty.
Can anyone help ?
…

Rob4236
- 375
- 1
- 7
- 12
0
votes
1 answer
Combobox and My.Settings
I'm using My.Settings to store different text for each item in combobox
It looks like this
I added to project settings 5 settings with type "String"
I'm using this code
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As…

Anel_Hodzic
- 55
- 9
0
votes
3 answers
ArrayList changes does not affect to My.Settings
I'm here again trying to solve this issue with the ArrayList that I've explained in this other question... the difference is that this time I'm not searching for any alternative solution such as the usage of other external file to avoid the real…

ElektroStudios
- 19,105
- 33
- 200
- 417
0
votes
1 answer
Writing My.Settings to Text File
OK, so I am having some trouble with writing to a text file, retrieving values from My.Settings. The code is below. The problem is that when I check the text file, it only has the first line (which is just a simple string in the code).
Dim…

Centaurian
- 277
- 1
- 3
- 11