How And Where To Save Program Preferences
Oct 30, 2011
I have a default WindowsApplication1. I understand that with .NET the recommended way to save program settings are to use XML files instead of the registry.In this application I have a menu with a "Settings" entry, that opens a window which has 1 setting"Save window position", and a checkbox
View 3 Replies
ADVERTISEMENT
Jan 31, 2010
I'm trying to save user preferences in a file, when the account is made, an XML file is created with default values:
<?xml version="1.0" standalone="yes"?>
<NewDataSet>
<accountPrefs>
[Code].....
So basically i'm trying to set the colour of fonts and split containers, using the names of the colours which are stored within an XML file that each use has. ( the values are read in correctly as i set labels to test them out. )
View 1 Replies
Sep 27, 2010
The projects I've made in VS 2008 and VB6 are pretty basic. I use VS 2008 now, and I was wondering how I could accomplish something like this:Let's say I want to make a toolbar and in the toolbar (under Options...) I want to open up a dialog box that will allow users to change preferences to the software I've made. Let's say, for instance, they can set the background color of the main form to customize their software a bit.
View 2 Replies
Mar 12, 2012
I want to save my preferences for a program. I just want to know how to do it, since I cant get how to save this file at my documents, because every computer has a different name and username, but using the My.User.Name returns 'USERNAME-PC-USERNAME' which doesn't work. For example, I want the program to create this text file 'CPreferences' at 'C:Users'username'Documents'. And then when the program is re-opened it will automatically load this file into itself, the file will basically contain 2 lines:
[Code]...
View 3 Replies
Apr 2, 2010
I have to drive files using different settings from the printer driver. Can I change the preferences & settings of the driver from a VB application? Right now I am using a VBScript, using key presses, to drive the files. I am developing an application using VB.net. I want to get away from the key stroke method. It takes to long to drive all of the files at the different printer driver settings.
View 2 Replies
Feb 5, 2009
I am trying to set the variables, 'min and 'max' from user selected preferences. But, since the code where the variables go is outside of the private sub, I can't figure out where to put the code to retrieve the data from the file.
Dim spkr As New SpeechLib.SpVoice
Dim r As New Random()
Dim CountDownTo As Integer = r.Next(min, max)
[Code]....
View 10 Replies
May 7, 2011
My HP LaserJet 1018 Printer Preferences has "Paper options" with four options: Use different paper, Size is, source is, Type is. "Type is" has options such as: Plain, label, card stock, envelope etc. Apparently this information is relayed to the printer and affects its operations. In my case when I put in labels the heavier paper is not pulled correctly and the registration is often off. How can I choose one of these from VB 2008 .NET? I find "paper size" but not "type is" among the many options for Printer Settings.
View 1 Replies
Aug 20, 2009
I need to have the ability to have a Global variable/class that stores some basic information about the currently logged in user including that user's preferences, security rights, UserID, etc. This information will be needed by any/every part of my application. In the past I have either used a Public variable/class in a vb.net module for this purpose. I'm trying to get away from my old ways of doing things and was curious what people currently do for this functionality.
I am thinking a singleton or 2 regarding preferences and security but am not sure if that is the best way to go.
EDIT: I asked this when I was too sleepy last night. This is an n-Tier WinForms application.
View 2 Replies
Jul 18, 2010
what I mean, every full-featured program has one. Tools > Options brings it up in Firefox. First off, I've looked for tutorials on making these and can't find them anywhere, does anybody have any links? Second, I'm making mine with a TreeView and panels. The problem is designing this thing with all of these overlapping panels! It's crazy. So, how do you easily make an options menu like Firefox where clicking on different tabs brings up different data options?
View 2 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
Feb 7, 2011
I'm creating a program and i want it to secretly save when the user clicks on save.
In other words, i have made it so that it saves twice. Once for the user to read (like a fancy copy) and another that the program uses to open up the form.
Currently when pushed, 2 save dialog boxes come up after each other. I don't want this to happen. I want 1 to come up (the user friendly, fancy version) which is the easy part, but i also want the other 1 to save automatically and secretly without asking the user to set the destination.
View 39 Replies
Feb 28, 2010
I almost have this text editor/Stopwatch/Calculator program done. I am having mojor difficulties to get this code for Save and for Save As to work properly. I do not have code for save yet. When I click on Save I want it to save without popping up the dialog box. I do not have code for Save yet. When I click on Save As I want the popup box to show. Here is the code I have for Save As:
[Code]...
View 6 Replies
Jul 22, 2010
Ok major problem with a paint program i am making. When i have a window overlap or anything and move to side of screen and minimize and maximize i lose whats in the picturebox...Here is an example of the code I use to draw a line after click a button:
Private Sub btndraw_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnlinedraw.Click
lxs = txtslinelocationx.Text
lxe = txtelinelocationx.Text[code].....
Here is a picture of my program running: How do I stop everything being deleted when things pass it...? how can i add a save feature to this program?
View 5 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 24, 2010
When I run my program and save my file and name it "Ed's doc". It saves fine. But the title still says untitled, I would like it to say Ed's doc in this example.This is the code I have for my SaveAs button:
Private Sub SaveAsToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveAsToolStripMenuItem.Click
Dim Save As New SaveFileDialog()
Dim myStreamWriter As System.IO.StreamWriter
[Code]...
View 5 Replies
Feb 3, 2012
This is just a 'goof around' program. I am playing around and wanted to see if I can set the get the 'Save' button to save!
View 6 Replies
Feb 16, 2011
I have create a programe using vb and visual studio 2010, my program have a mdi parent ,multi userforms which have textboxes comboboxes databases , modules etc. i want to create a save as button so as to create a file. in this way the user could stop the program at any time without the need to input values at all the necessary fields at once. i think that streamwriter isn;t what i need here so how i do that?
View 6 Replies
May 3, 2009
I've created an organizer for myself that consists of a few forms, comboboxes, and textboxes. How do I save EVERYTHING as one file. Once I've saved the file, how do I make it so that when I click the saved file, my full program loads up with the forms and everything?
View 2 Replies
Jun 20, 2009
I have a form with a listbox. I have controls on the form that can add items to the listbox with the click of a button. I already have the save file, open file dialogs working properly but I want to add something else that works with them. Lets say I open a file and the listbox adds all the strings from the file. Now, lets say I add something to the listbox and instead of saving the file, I just close the whole form. How do I make my program ask if i want to save the changes to the file when it is about to be closed? (I only want it to ask that IF there are changes to the file).
View 9 Replies
Apr 28, 2012
I have a button on my form and when clicked I want to show the save dialog box but I want to have a filter so the file saved can only be .txt also I want to change the default location of the save as dialog, is this possible?
So far I have the following
Dim filesaveas As New SaveFileDialog
filesaveas.Filter = "Text Files|*.txt"
filesaveas.Filter = "C:\Test\"
View 11 Replies
Oct 15, 2011
I'm trying to save data from textboxes in visual studio using vb.net to sql server 2008. the coonectiong is working perfectly but is not displaying the data output in data grid. This is the part of the code.[code]...
View 10 Replies
Mar 27, 2011
Simply stated I was wondering how I would take text from the user and store it in a local database within the actual program?
View 1 Replies
Feb 13, 2010
I'm trying to create an app launcher in vb.net but I do not know how to save files. Save files like the one that is executed when you run a setup for an application wherein the setup will save the application files on program files folder. I'm not trying to create a vb.net setup, because I want to run my program as portable. What I want the program to do is to place the files in their appropriate location when the user clicks a button[code]...
View 2 Replies
Oct 8, 2009
For the excel automation, actually what I wanted is a save button to save as a new spreadsheet and not opening from a exact one.
View 4 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
Feb 8, 2010
I am making a program for my workplace. The program is going to close explorer.exe on start up and launch only applications i select. (I know that there are other ways to do this, but I'm getting paid to make a custom program W/ Co. Logo)
1st question: How do i make the program close explorer.exe on start up
2nd question: End users will be able to change the background of this app. My question is, How do i save the background the end user pick on program exit and load it on program start? [code]...
View 2 Replies
Jul 17, 2009
I have a problem with saving images in Access. OK the problem is: I saving for first a picture without problems, but then I want to change it for instance "I don't like this image and I want to change another one". Access doesn't want to save second image... and I don't understand way! Code is OK I think because it saved one image. I can change the previous image only if I closing the program and I start it again.[code]...
View 8 Replies
Nov 27, 2010
What would be the best way to save configuration of a program? for example lets say you have a checkbox and does whatever and you check it and start the program and it should be check or unchecked depending on the setting used.
View 1 Replies
Mar 31, 2010
ok i am making a "game" in visual basic 2008 and I have come across a problem...
I need it to be able to play a sound without saying that the sound is stored at "c: estsound.wav"
I have it working and playing the sound when i want but it only works on my computer
How can i save it into the resources just like you save a picture into resources?
Btw if it helps i am playing the sound using the axwindowsmediaplayer thing and it just plays the sound when the program loads...
so form1load then it plays the sound.
how i can make it play the sound on other computers?
View 1 Replies
Jun 17, 2009
I've noticed that when I save a newly scripted program and attempt to open it after I close Visual Studio 2008, it no longer shows the layout/design of the program...how would I go about configuring it so it looks the same as before I closed visual studio?
View 3 Replies