Questions tagged [my.settings]

77 questions
2
votes
1 answer

vb.net My.Settings

Is there a way to create my.settings variables dynamically? I want to generate my.settings variables depending on values in my data base so the number my.settings variables need to vary from time to time. If i had the following values in my…
user1570048
  • 880
  • 6
  • 35
  • 69
1
vote
1 answer

Saving Dictionary into My.Settings doesn't work

I am trying to save Dictionary(Of String, String) into My.Settings. It seems, that those settings only support System.Collection.Speciallized.StringDictionary, which is not exactly the same thing, but would be OK. I create a StringDictionary, fill…
Oak_3260548
  • 1,882
  • 3
  • 23
  • 41
1
vote
1 answer

How to change application config file name (AppName.exe.config)?

I use My.Settings object in VB.NET, which automatically gets application setting from AppName.exe.config file. How can I store config in file with other name, not AppName.exe.config? I have several programs, all of them now uses their own .config…
dmitry
  • 468
  • 1
  • 4
  • 18
1
vote
3 answers

Add an event handler to a my.settings value

I want to invoke a method every time a value from My.Settings is changed. Something like: Private Sub myValue_Changed(sender As Object, e As EventArgs) Handles myValue.Changed (...) End Sub I know that, if I wanted to do it with a…
Pspl
  • 1,398
  • 12
  • 23
1
vote
1 answer

My.Settings() Throws Exception Error When Using .NET Core, But Not When Using .NET Framework

When creating a project with any version .NET Core, debugging the application throws this error: System.Configuration.ConfigurationErrorsException: 'Configuration system failed to initialize' Inner Exception ConfigurationErrorsException:…
1
vote
0 answers

VB.Net Issue: After adding my.settings variables MySql Connector stops working

Disclosure, I am relatively new to VB.net but not programming in general. Problem: I created a program that uses a MySql connector to connect to a database. Everything worked great. Yesterday I decided to use My.Settings variables to store some…
waslost1
  • 11
  • 3
1
vote
0 answers

Exporting stringcollection data

I have a project i am working on that has something similar to a bookmark system and the entries are being saved in a Specialized.StringCollection in My.Settings. Private Sub MainFormClosing(sender As Object, e As FormClosingEventArgs) Handles…
1
vote
2 answers

Make a Clone of My.Settings

VB2012: I am trying to make a clone (not a copy) of the My.Settings class. I tried the DeepClone function found here on SO Public Function DeepClone(Of T)(ByVal a As T) As T Using stream As New System.IO.MemoryStream Dim formatter As New…
sinDizzy
  • 1,300
  • 7
  • 28
  • 60
1
vote
1 answer

Visual Studio My.Settings

I'm having some issues with MySettings in Visual Studio. I set up some settings via the GUI (properties menu). Give them names and values. Everything is saved. Let's say I have a setting: SettingA, Value=123 (User settings) I go to display SettingA…
Bill
  • 123
  • 1
  • 2
  • 14
1
vote
2 answers

How to access MyProject.MySettings.Default.SomeSetting from xaml?

I have defined a StringCollection in the Project Settings. I want to use the values in a ComboBox. Is there a way to access it xamly? I tried:
Shimmy Weitzhandler
  • 101,809
  • 122
  • 424
  • 632
1
vote
1 answer

How do you change the value in my.settings in a form when you enter numbers in a textbox in VB.Net

I was wondering if you could help me? My question is that, is there a way of changing the value in my.Settings in a form if you enter a number/decimal in a textbox and click a button and then update in the settings to be then changed in another from…
1
vote
1 answer

Set an RGB color value as default in My.Settings

VB2010. I have setup some settings in MyProject.Settings. One of them being being a color variable. However I cant seem to figure out how I can set a specific RGB value as the default. The My.Settings designer only lets you pick predetermined…
sinDizzy
  • 1,300
  • 7
  • 28
  • 60
1
vote
1 answer

Encode variables in My.Settings string & dynamically parse

I would like to be able to take a string such as the following and put in in MySettings and have the application dynamically parse the expression. Is that possible? Name: ClientName Type: String Scope: Application Value: MyData(i).FirstName &…
Susan
  • 1,822
  • 8
  • 47
  • 69
1
vote
2 answers

Application.Idle acting differently

I'm currently working on a from that will logout the user in a certain amount of inactivity time. I declared Application.Idle Private Sub Application_Idle(sender As Object, e As EventArgs) Timer.Interval = My.Settings.LockOutTime …
Aron Jay
  • 155
  • 5
  • 11
0
votes
0 answers

VB.NET Throws Exception while Compiling System.Configuration.ConfigurationErrorsException

When i try to compile my WinForms VB.net project using dotnet 4.7.2 in Visual Studio 2022 Newest Version. This error comes System.Configuration.ConfigurationErrorsException in this file: Settings.designer.vb, it also says that the configuration…
TRC Loop
  • 1
  • 2