I created a form and a checkbox with default name in visual basic 2008 as i move mouse wheel, i can choose a picture for background image i can also change the checkbox's forecolor when i press any key on the keyboard and my first problem is i want to save the new background image which i has already chosen as i close my form and so does the checkbox's forecolor,move the checkbox to wherever i like and save this setting?
So, I have created this program and I want it to save the items that can be added into the list box with the My.Settings codes.(So every time I open the program the items will be there)
I set up some application settings for checkboxes on an app and then decided to remove them. When I set the Application Settings to (none) in the designer and restarted the app, the checkbox constantly checks and unchecks itself. I completely remade the app and removed the file that is used to store my.settings in the Local folder of the user's appdata profile. I also made sure to uncheck the "save my.settings" on shutdown.
E.g. default setting for serial port after start up is COM1. If user sets COM2 and restarts program, is it possible to store port setting, COM2, other than still start from COM1?
I have combobox I need settings saved when user clicks save settings button and I have add by number box I need settings saved on basicly its set on 50 but some users can change value up to 500 so I want it so that can also save settings and thats it
I was thinking adding this but I know it will be wrong
me.combobox1.SaveSettings() or me.nudResultsToShow.Settings.Save()
I just wondered if you can or can't save arrays using the settings system object. There seems to be no way of entering it at designtime. It seems implied you cannot create new user settings.subobjects at runtime. I'm looking to find the easiest way to save a populated array of PictureBox's. If the only way is a self/custom made/managed .ini file then I need to know so i can start on that but I was hoping to use some of all this phaff in the new frameworks usefully.
i have created a user setting named 'setmeup' as string, scope = user, value = "magical meow meow!".in my code i access it and assign it a new value like this...my.settings.setmeup = "howdy cowboy!"my.settings.save()application.restart()when the application restarts, i expect the my.settings.setmeup = "howdy cowboy!" but when i check its contents its still "magical meow meow!".but when i use application.exit() instead of application.restart() and manually restart the program, my.settings.setmeup = "howdy cowboy!" which is correct.what must i do? i want to use application.restart() because i don't want the users to double-click the icon again to start the program. i want the program to restart automatically.
trying to save the settings in a settings form but every time m setting the settings (when the form is running) then exiting it and then reopening itare the settings that i setted not there Ex : I open form2 by clicking on a button thought form1 and change the settings for example i uncheck a checkbox then do i close form2 and then open it again. And the settings should be saved so the unchecked checkbox should still be unchecked.BUT when i close form1 should the settings be unsaved and go back to normal :)
i've been busy with a program and it has worked out quite well. The only thing I still want is that it is possible to customize things and save that in a text file. Normally if i want an other background for one day, i need to change it in VB or make a checkbox to do that. if i then restart the program all the settings are lost and i have to set it again. so i was wondering if the program can make a text file and put codes like 1 for theme 1 and 2 for theme 2 etc. in it, then save it and load that file when it starts up again. and is this also possible for a login form? if yes, i can also add a "Create Account" button for my program instead of adding codes in VB.
I'm trying to save a setting that keeps what background image I'm currently using.If it's an external file, there is no problem, i can just get the .location and set it in a String setting to store it.
But, if I want to store an image resource as a setting, how do i do it?I know i can store rawdata, like bitmap information, but then i can't set that type of data to the my.background.
I don't know if the question should be: "how do i reference resources", but the my.resources.resource.methodsList doesnt contain anything that seems to be of use.
I'm making a program and in which the user can select a background image from their computer, but I have not found a way to save the picture to my.settings or my.resources
Does anyone know how to turn off the blank space delimiter of a dot? I have no idea how I turned it on, but now there's a dot where every whitespace charater would be in the IDE's code window.
I'm trying to save a collection of key/value settings in my application's "user settings" (they're column widths), but while I see no errors, when I run the code (in the IDE) my collection in "My.Settings" is always nothing at startup. I do a "My.Settings.Save" when the application exits, and barring the "serializers not found" errors in the IDE, no other errors occur. When I run my application as an exe, it behaves the same way..
I am rewritting my application to conform to ms standards. We used to save all settings to registry for user settings, servername, size and locations.so we are now saving them into My.Settings app.config the only problem is that each time there is an update clickonce will isntall the newupdate but now all settings are loist and user has to save everything all over again..
I am trying to follow the book here but it seems i keep getting stuck somewhere. registry has worked fine for years but i understand we must move on, but if stuff like this happens then i just wasted a long time converting all code to conform for it to not work..
I have created a settings-file for my plug-in-based app. When the mainApp writes the settings to the file, the pluginApp should read the settings from the settings-file (when opening or at runtime even better), but somehow it reads the settings from the app.config-file. This means that the pluginApp never will read the settings according the values of the file.
It's just a login form that is supposed to save your connection settings, but it won't save my values; they revert to the previous values every time I run the program. Does the IDE just not save your settings, or am I doing something wrong?
Public Class frmLogin Private Sub cmdSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSubmit.Click
have a code for load info to textboxes and save to ini file.like takes info from hello.ini file and when i load rhe program it will take the info to the texteboxes...
I saw that you can also use a "Settings File" (Add new Item)to add your settings instead of the application settings. But I can't seem to write any values to the file. Someone with experience with the "Settings1.settings"?
It saves the settings to the registry, loads the preset settings, and if you want to uninstall the app, you can use the delete settings, which deletes the registry folder for you app.
Here's how: create a form, 1 textbox, 2 check boxes, 3 buttons named as (setbtn, getbtn, delbtn) '1 textbox, 2 check boxes, 3 buttons as setbtn, getbtn, delbtn Imports Microsoft.Win32 Public Class Form1 Dim reg As RegistryKey = Registry.LocalMachine.CreateSubKey("SoftwareMyApp", RegistryKeyPermissionCheck.ReadWriteSubTree) [Code] .....