Windows :: Way To Save Settings?
Jun 13, 2011
I am creating a program which launches a game server. I have combobox in which the user can enter the ip, map, etc, of the game. How can I save what they have entered so that the next time they are already there so they don't have to re-enter them.
View 2 Replies
ADVERTISEMENT
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
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
Aug 5, 2010
I am working on a .NET Windows Service where I am trying to store settings that will be used when the service is started and while it is running. I have searched through posts on SO and found that using the Settings in the properties of the project is great for use with console and winforms applications. However, Google and SO are silent when it pertains to storing these settings with a windows service.
View 4 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
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
Apr 14, 2009
I use a textbox AutoCompleteCustomSource to save recent entries within a textbox and obviously, then autocomplete them when the user enters a matching value. When the application is closed then re-opened these values are lost.
I believe I can save the values using My.Settings but I haven't been able to get it to work.
I created a setting 'AutoCompleteList' of type System.Windows.Forms.AutoCompleteStringCollection in the Project properties > Settings area.[code]...
View 1 Replies
May 14, 2010
What I am trying to do is serialize an object map and store it in My.Settings. There appears to be no data type that can be used in My.Settings that would hold a byte array other than a string. Therefore, I encoded the byte array from the serialization and turned it into an ASCII string, but it wasn't a true representation of the bytes, and the deserialization failed. Converting the bytes to an ASCII string apparently chops some of the bytes down to 7 bits, which hoses the conversion.
Before I get into anything too bizarre, I figured I might as well put the question here: Is there a way to stuff a byte array into My.Settings?
View 3 Replies
Oct 30, 2010
i know about the My.Settings but i need to know how to save all the settings in a .ini Text file for example I GOT A SOURCE :: BUT THE GET SETTINGS DOESN'T WORK || Save settings DOES work
[Settings]
Textbox1=Name
Textbox2=Last
[Code].....
View 1 Replies
Mar 14, 2010
lets say i have a checkedlistbox in my program and i want to save everything that is checked in an xml file so it will be checked again when i start up the program the next time, how can i do this ?
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
Sep 25, 2009
I am working on a file explorer, and I want to save the view settings of each folder, like the icon size, font size, ect.. I was thinking of using an xml file to save these settings.
View 1 Replies
May 20, 2009
Save some settings related to the application on individual computer so that user does not have to set them again and again.
View 10 Replies
Mar 27, 2010
How can I save a few settings to a file for my application? Its just whether the orientation of the document is landscape or horizontal, the zoom level, and the current font. Would an XML file be best?How can I create, write to and read one?
View 12 Replies
Jun 3, 2009
I want it so that when i click button2, all the settings like, font color for example, will be save to a .ini or .xml(which ever one is better). What do i need to do for this ?
View 23 Replies
May 11, 2012
checkboxes in the listview. I want to save the settings of the checkbox when I tick and untick them in the listview, e.g tick and untick the checkboxes and save the subitems text in the label text.So I can read the settings from the label and split it to read each text. how i can save the checkbox settings before I can read the subitems text when I click on the button?
View 6 Replies
Apr 17, 2009
I was wondering the best way to save a users settings in my application i.e there name, e-mail address etc and i came across an application that saves them like[code]...
View 3 Replies