Save Settings During Program Usage
Oct 27, 2010
I have created a bunch of user settings using my.settings.*** and only save these upon form_closing for the time being.I wanted to save the settings every 30 or so seconds, so I created a timer with 30 second tick intervals. Inside the tick event of that timer I included the code that I had in the form_closing event.While it works to save the settings, it also 'freezes' or 'skips' the main program for about a second or 2 while it's saving. The code to save settings includes looping through at least 2 arrays and adding them to the settings specialcollection object one item at a time.Is there a better way to accomplish this, without 'locking' up the main form for a second or so? Is it feasible to loop through all the settings in a different thread (can you access settings cross-thread)?
View 1 Replies
ADVERTISEMENT
May 5, 2012
is it possible by 1 program to save settings to another program without running the program that is being edited?
View 6 Replies
Apr 27, 2012
I want to save settings in my program as follows. I have an import button to open files. How can I make it so when I start up my program next time, they are already "imported" as a setting or something? *Note - I have not tryed anything as I do not have the slightest clue how.
View 1 Replies
Apr 14, 2009
I am currently using vb 2008 and want it so when a user registers it will unlock all the extra features and stay that way even after the user quits and restarts the program... I already have everything set exept for the save feature. I don;t know exactly what to do. I just want to save the settings of my program so that they are the same every time somebody uses the program. I heard that you need to go into Project , then properties and then settings... But I don't understand what to do there...
View 2 Replies
May 17, 2012
To save data to your program using My.Settings. To do this go to your program's properties and to Settings. Create your variables there and to access them, here's an example:
[Code]...
View 1 Replies
Jun 10, 2011
I coded a small application in VB Express 2010 and I wish any one could provide for me some code on how to save personal settings from an options form so that the end user don't have to keep making their personal choices every time that start my application that I created.
Personally I don't have a clue on how to accomplish this feature with in VB Express 2010.
I used check boxes and radio buttons in the options section on a form for the end users choices.
View 7 Replies
Aug 12, 2006
I am trying to use the settings page to save user changeable options and when I try to read in anything from the settings I get the following error.
Reference to a non-shared member requires an object reference.
Example: Me.textbox.text = My.Settings.Servername
View 7 Replies
Oct 5, 2011
how do I do this properly:
vb
Imports System.IO
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[code]....
I would like to store some app data in a 'default system folder', so when I launch the program it will know where to look for it's own settings.As a matter of fact I only need to store there a path to the files used by the program. Users will be able to choose where to put them (simplified installation). The program has to know where to look for them.
Am I creating the folder properly? As you can see I'm referring to C:... The folder structure presented here comes from my laptop running on Windows 7 Ultimate. Maybe the C:... can be somehow defined by some sort of a system 'shortcut'. Following the above example the program would look for those in C:... , but maybe I can use something like ~~ default.app.settings.My Program Name ~~~. How does it work? Have no idea how to call it properly, but I'm sure you will know what I mean.
View 5 Replies
Jan 14, 2009
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.
View 3 Replies
Feb 8, 2008
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.
View 2 Replies
Mar 25, 2011
I'm working with an Treeview and i'm new at it and i have 2 questions.
1. How can i save the treeview items, to settings (my.settings.history)
2. How can i save the treeview items as an TXT or XML file or another exception.
View 13 Replies
Sep 8, 2009
Is there a way to maintain application modified Settings in the settings files after a program update? i.e. I have 10 or so values in the settings file and the users can modify them... when I send a program update they revert back to what I initially programmed them to be.
View 3 Replies
Jun 8, 2010
how i can save user settings in vb.net
i have a project with different buttons when a user clicks a button the image of PictureBox1 will change.
i want to save this image that the user has chosen after he closes the application, so it will be displayed in PictureBox1 when loaded.
i am using Microsoft Visual Basic 2010 Express
the languge is VB
View 5 Replies
Sep 27, 2009
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.
View 6 Replies
Apr 14, 2008
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..
View 7 Replies
Jan 27, 2010
Maximum threads usage in a program
View 4 Replies
Jun 20, 2012
Is it possible to create an application with vb.net to track a users usage of Excel, Word and another application called lets say - Userapp.exe
At work we have been asked to create a diary of our days work and since most of my work is in excel, word and a custom application I have built, I was wondering if it was possible to track the usage of these programs store the data in a datatable and then save it to a access db.
Usage of the program would mean the time that the file is open on the screen, that way the time a program is open but minimised in the taskbar would not be counted.
The data table would have these headings -
1. Program (i.e excel, word etc.)
2. Name of File used
3. Time used in program
Could I use the windows task manager for this?
View 1 Replies
Apr 18, 2012
I have an ArrayList that stores 100,000+ numbers inside of it. Each number is 10 digits in length or smaller. The program itself has data input into it, of which it loops through the user input to see if any of their numbers are already in the array using if ArrayList.Contains(userinput).
It would appear that when having an ArrayList of this size a LOT of memory is being used. Would there be a faster way to run this, E.g. Database or If TextFile.Contains(Line)?
View 3 Replies
Jul 4, 2009
For example. I have 5 checkboxes. If a user selects one next time the application is loaded it remembers what is checked
View 5 Replies
Mar 17, 2011
Here is my code as I have it
Code:
Public Class Form1
Dim OpePro(7) As String
Dim FN As String
Dim NPB_1 As Button
[code]....
How do I save the new buttons and their properties?
View 14 Replies
Feb 23, 2011
How to save the settings that my app uses ? should I use sql, xml , access or any other flexible & easy way.
View 2 Replies
Mar 1, 2010
I have a queue that i want to save it to the Settings of the app, what type do i use to save it? I dont see a system.collections.generic.queue
This is the queue Dim dlQueue As New Queue(Of ListViewItem)and the Settings My.Settings.dlQueue
View 5 Replies
Aug 28, 2009
Does anyone know of a good way to save settings in vb.net?
The only way I know how to do right now is to make a registry key with a specified value and call upon it when the program loads up again.
I can't do this though because I have a whole lot of data I have to save.
can you save the data in a notepad and call it line by line to save each feature?
View 12 Replies
Jun 8, 2012
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
[Code]....
View 2 Replies
Jan 25, 2010
Get the current number of usage days, unique usage days, etc in an evaluation license using CryptoLicensing Generator.
View 1 Replies
Apr 24, 2009
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] .....
View 4 Replies
Jan 26, 2009
I wanna save and load my color selected by ColorPicker like this[code]...
View 9 Replies
Jun 25, 2010
I want to create a back up of my.settings in the cloud. How would I go about doing this?
View 2 Replies
Oct 27, 2011
I am trying to save a path to my settings, it just dont want to work.
Private Sub BulletPathButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BulletPathButton.Click
Dim OpenFileDialog As New OpenFileDialog
If OpenFileDialog.ShowDialog = Windows.Forms.DialogResult.OK Then
[code].....
View 9 Replies
Jun 13, 2010
Apparently the system.collection.arraylist does not work since it is more of a list than anything else. Is there some sort of collection that will save my array as is so that it can be retained latter on application load?
View 5 Replies