Questions tagged [my.settings]

77 questions
0
votes
1 answer

How do I loop through all the values in My.Settings

I am using Microsoft Visual Studio Community 2019 and I need to loop through all the settings in My.Settings. I would like to capture the name and value. I found some code and I can't get it to work. The file is created but it is empty. Any…
JRDumont
  • 1
  • 1
0
votes
1 answer

Where are settings values stored for a Windows forms application?

I have a Windows forms application. When I view settings on the Settings tab of my project properties and when I look at App.config, I see one set of values. When I view the values for some of the properties in a message box in the main form's New…
Dan-BTP
  • 115
  • 2
  • 9
0
votes
1 answer

How do I store and retrieve an Enum in My.Settings

I am trying to store and retrieve a ContentAlignment Enum in My.Settings via a combobox. I have setup this Type in Project Settings. I'm populating a combobox on a settings form with the relevant Enum values: With ControlAnchorCB …
stigzler
  • 793
  • 2
  • 12
  • 29
0
votes
0 answers

extract my.setting.whatever from another exe

Ussing vb.net I extract an image from another exe using the following code. My question is, is it also possible to extract a setting value from another exe using a simular method? Try Dim ExternalAssembly As Assembly =…
LabRat
  • 1,996
  • 11
  • 56
  • 91
0
votes
1 answer

My.settings is not available for a new form, and previous bindings to My.Settings on other forms cannot be altered (grayed out)

VB and VS 2019 - I have a forms application and have used My.Settings successfully to bind textboxes to settings. It worked as it should. I recently added a new form and My.Settings is not listed for data binding (instead I get "add project…
0
votes
3 answers

How can I store an array in my.settings in vb.net

I am trying to store a user input array in a my.settings variable in vb.net. I would like for the user to enter an array in the form {1,2,3}, store that as a string in the setting and then be able to use the setting value later to create a new…
Jamie
  • 555
  • 3
  • 14
0
votes
0 answers

VB.Net How to add a String to Settings

Currently I am working with My.Settings / Settings.settings and everything works great so far. I know how to overwrite / save Settings, how to Load them but I would like to know how to add new Settings with a Button and a Textbox. Let's say the…
0
votes
1 answer

Grabbing current user.config path (Visual Basic)

Is there a way of grabbing the location of the My.Settings user.config location? So for example I want to be able in VB to grab the path of the user.cofing file path to a string The reason I ask is that I have an application where the user.config…
Ky-0
  • 3
  • 2
0
votes
1 answer

Visual Studio 2019 (vb) - issue with Reading/Writing My.Settings

I'm just starting to develop and so there are some concepts that are not clear to me, I need you to try to understand what I'm doing wrong. My goal is to have a series of ComboBoxes that contain some strings, for example a string is this one, the…
0
votes
1 answer

How do i validate settings using the project manager generated My.Settings in VB.Net?

The code below does not work, the error says the method ValidateSettings does not have a signature compatable with delgate 'Delgate Sub SettingChangingEventHandler(sender as Object, e as SettingChangingEventArgs)' This error shows up when hovering…
0
votes
1 answer

vb.net My.Settings class Category and Description

I am having issues with finding out exactly what my path forward should be. I would like to allow my users to be able to update the user scoped settings in the Settings.settings file in my application. I have created a form which displays these…
0
votes
1 answer

How to Expand Existing My.Settings StringCollection Array

I'm a bit rusty and am updating a VB.Net program I wrote in 2013 using VS2017. I needed to expand a My.Settings StringCollection array by one entry. It was User scope, and I could not figure out how to enlarge the existing array, despite hours of…
0
votes
1 answer

How to overwrite Combobox item with textbox instead of duplicating it

I am trying to have a button generate a text file and save a new combobox item based on what is entered in the combobox field or replace an existing one but it seems to be adding a new entry every time. It overwrites the text file it generates just…
0
votes
0 answers

What has changed and "My.Settings.CommPort" doesn't work?

I'm following a Visual Basic 2013 instructions video to create an ASCOM driver using a template in Visual Studio 2017, but I'm getting an error saying "'CommPort' is not a member of 'MySettings'." Has something changed so that I can't use it as…
0
votes
1 answer

vb.net my.settings.* storage location

I am new in vb.net, and someone used 'My.Settings.*' on a vb.net program I inherited. I would like to know where the data are stored when using My.Settings in vb.net If I have a member variable called IpAddress for example, can I have an other…