Get My Program To Remember Settings?
Mar 15, 2009
How can i get my program to remember settings?I have made it so that they click on a register button, if they enter the correct registration code, it will unlock these features. How can i make it so it remembers that the key has been inserted, so when the user next uses the program, they dont have to re enter the key. I think it has something to do with ini files, but im not sure how i can implement it.Here is the
Private Sub Register_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Register.Click
If UserID.Text * (KeyID.Text / 2654) > "2234047144494" And UserID.Text * (KeyID.Text / 994) < "213725721516" Then
MsgBox("The User ID and Key are Correct! Registration is now complete. You now have full access to EVERY feature.
Base.CalenderToolStripMenuItem.Enabled = True
Base.ShowTrackBarToolStripMenuItem.Enabled = True
Base.HideTrackBarToolStripMenuItem.Enabled = True[code].....
View 4 Replies
ADVERTISEMENT
Mar 26, 2012
How do you make a program remember settings. For example, first it prompts you for your name, then when you close out of it and start it again, it will display your name?
View 8 Replies
Nov 15, 2010
I have a read only DGV on a tab of my application. I let the users sort by column and reorder columns and select a row. In another part of the application you can edit the data that is in this dgv so when I go back to the tab with the dgv I'd like to refresh the data but keep the user's settings such as column order, sort order, and row selection. Right now I'm just setting the dgv to the new list of items and it resets all of these settings. Is there anyway to persist these after I rebind the data?
View 1 Replies
Aug 12, 2009
Is it possible for me to make a VB program I make remember a destination?
1. User opens program
2. User presses "Launch" (OpenFileDialog)
3. User selects exe
4. Next time user presses "Launch" the same EXE as before is launched
Is there any way to do that?
View 34 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
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
Jan 28, 2009
My program will need to store some settings for when the program gets closed then opened again. I would then like to reload the settings?
- Flat file
- Database
- Registry
- Other
View 1 Replies
Aug 2, 2009
I want to hear some discussion regarding what is the best way to persist program parameter and variable settings from one run of the program to the next. I used to often use the ubiquitous INI type file in VB6 programs but I am aware that these are not formally supported in .Net programs. I also have a major aversion to adding to the already overwhelming bloat of the Windows registry by using that to store values.
[Code]...
View 6 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
Feb 26, 2009
How would I be able to encorporate an ini file that is full of this...
<?xml version="1.0" encoding="UTF-8"?>
<IpceloynProject CompactMode="1">
<ThemeInfo Caption="Common">
<Class Name="Documentation">
[code]....
View 1 Replies
Jul 6, 2011
I have a autoit script that I am using for automation testing. My autoit script is called from a vb.net file. Dialog box of UAC settings will appear and is stopping the execution of test scripts. Currently I am trying process.startinfo.username and password to give specifically username so it may execute the script. Please guide how can I avoid that UAC during my tests execution.
View 2 Replies
Oct 27, 2010
I have 2 Forms: (1. MainForm.vb and 2.Settings.vb). MainForm.vb is the Startup form and Settings.vb shows when the MainForm.vb loads. Settings.vb has a CheckBox that allows the user to check if they never want to see the form (Settings.vb) at startup again. When I check it and close the program, then restart the program the checkbox is unchecked. How do I get the program to remember the user selection of the checkbox? [code]Is this a "Writing to Registry" matter?
View 17 Replies
Jan 6, 2011
On the printer preferences side, paper size is Letter. So when i try printing a Rectangle it is cutting from the bottom, using following code. The reason i found is Printer is not listening the code to change the size from Letter to A4. Only then Length of page will be increased.[code]...
View 4 Replies
Apr 23, 2012
Is it possible for a program to make new settings?
To enter the settings name, type, scope, value?
View 9 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
Jun 15, 2009
Okay, i have this program that gives the user some settings that need to be saved and loaded when the program runs. Can anyone help me with this?
View 15 Replies
Jul 9, 2010
We have a VBScript that launches an Access app that connects via ODBC to SQL Server - wouldn't you know the server name is changing.
Is it possible to use VBScript to modify the ODBC information in the registry to point to the new server? Basically changing one specific value for one specific key. Am I better off deleteing the ODBC key and readding it from scratch?
View 6 Replies
Apr 4, 2011
I'm working on program that has two forms. The main form is called 'frmMain'. Second form is called 'FrmHistory'. In the History form, you can check a number of combo boxes to set settings for a grid.
This works.Now, when I close the FrmHistory form and then open it again, I have it so those combo boxes (Settings) are how I left them. This works. I do so via this.
[Code]...
View 3 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
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
Feb 22, 2009
I am using a check box tied to a program settings. When I am in form designer my check box property is "unchecked", however, when I debug my program the checkbox is checked.
My value for my settings is set to false and my property setting is also false.
View 1 Replies
Apr 8, 2009
I want to change my class library's settings from an another program. For this, I've made a Public property in my class library. It worked right. But this is not my question. I wonder this is a right method? Can I access a class library's settings (My Namespace) from other project directly?
[Code]...
View 4 Replies
Jul 12, 2011
How can I add to a class library (.dll) various icons, images and others settings and configutation files to use from my program?
View 4 Replies
Mar 24, 2011
i am trying to make a program that holds info in the settings... it holds it in an array so that you can add to it and take away from it... he is the code i have so far....
So far it is just the adding part but im still haveing some problems...
Public Class Form1
Public Function array_use1(ByVal array_string As String, ByVal number As Integer)
Dim num_holder As Integer = number
[Code].....
im trying to get this done so i can demonstrate how it works to some friends.
And also note that i dont want you to like write out a bunch of code then tell me its the right way...
View 8 Replies
Oct 3, 2009
How do I save my programs settings in a document? Like total sessions used, Total accounts created. Also, How do I make a text file save and load every time the program is opened or closed? The saved accounts should be like this in the text file.
Account: Account name E-Mail: E-Mail used Password: Password used
Account name, Password, E-Mail will will all be in a textbox or combobox so if you can make it save from there. I have an total accounts created combobox. How would I make that load into a combobox and then when session is closed they all save. So loaded into a combobox then saved into a text file.
View 3 Replies
Mar 17, 2012
I would like to create a program that user can save his settings in the program and not on the computer .I want to make something like icon changer ιnstead it will work for strings not icons String Changer?
View 4 Replies
Nov 11, 2009
I'm wanting to store some settings for my program in an XML document. I've found plenty of places that allow you to write an XML document to somewhere on the hard drive although I'm wanting to link it in with the project so when the program installs it setups up the XML as well. This is also so when the program uninstalls it removes the XML.So I was wondering how I would go about writing to the XML document in my project, could it be done with Linq?
View 2 Replies
May 4, 2009
I'm using RichTextFormat, and i'm using cf to change the color of strings. I have this
Code:
cf22dgreengiant
Its actually like this though
Code:
cf2 2dgreengiant
But the parser thinks that the 2 in his name is part of cf. There's a character, in many different formats (usually ) that will fix it, but I can't remember what those characters are called so I can't look it up. It would be like this, assuming ! was the character. This would make it parse correctly
Code:
cf2!2dgreengiant
So what is that character called? Sorry for the dumb question, but I can't for the life of me remember.
View 2 Replies
Jul 18, 2009
My typical application has a couple of textboxes, checkbuttons, radiobuttons, and so. I always want to load the settings the user used the last time when the program starts, and also want to save the settings as the users clicks "Save settings" or closes the application. When the user attempts to save the settings, I'll have to check each of the controls for input errors (sometimes they have to have a max length, other times only caps, other times other things, there isn't a rule for them all, everytime it'll be different), and only if everything OK i'll let him save the options. If there is something wrong, no option is saved and my error-control provider will pop up a description of the input type info that should be put in that control.
I've been designing this from scratch for all my projects, but it's being a pain to do it. So I'd thought maybe now was the time to do some library to help me. I thought initially that maybe it'd be a good idea to have all the controls on my form that are going to be part of this save/load process to have an attribute associated with them, something like this [Code]
View 2 Replies