Save/load User Inputted Data?

Aug 9, 2009

I have created a program in Visual basic 2010, the program contains many different objects e.g. datagridview, textbox, buttons, graphs etc, which can all be modified by the user. The user can also select a file using 'SaveFileDialog'.

Is there a way to save all the properties associated with each object to this file and later load the program back to exactly the same state it was saved in, after the user has selected saved file using 'LoadFileDialog'? Preferably in binary.I can do this the hard way in ASC11 format by interrogating objects user editable properties and saving them. I would rather not use this method as it will require a lot of code and any future program changes will require a lot of extra work.

View 2 Replies


ADVERTISEMENT

Save / Load User Inputted Data?

Jul 25, 2010

I have created a program in Visual basic 2010, the program contains many different objects e.g. datagridview, textbox, buttons, graphs etc, which can all be modified by the user. The user can also select a file using 'SaveFileDialog'.

Is there a way to save all the properties associated with each object to this file and later load the program back to exactly the same state it was saved in, after the user has selected saved file using 'LoadFileDialog'? Preferably in binary.

I can do this the hard way in ASC11 format by interrogating objects user editable properties and saving them. I would rather not use this method as it will require a lot of code and any future program changes will require a lot of extra work.

View 3 Replies

Get User-inputted String Into A 2 Dim Array?

Dec 5, 2010

I am in Visual basic 2010 express.The user will input how big the array dimensions will be.

An inputbox will appear asking the user to type each row in the array.

How do use substrings to separate that string in into each box in the array. (probably separated by commas or spaces?)

View 3 Replies

Save & Load User Added Controls?

Jun 4, 2009

I am currently wokring on a project, which is going to serve as an interface for accessing various documentation and reports. It is basically just a tabcontrol with a few pages that will be poppulated with buttons which will open the appropriate document.I am trying to allow administrative users the ability to add new, edit or remove buttons which all seems relatiively simple, but have run into the problem of how to persist the changes once they are made. I want the setting to be stored centrally, either in a SQL table or on a network share

View 1 Replies

Add Numbers From Dynamically Created Textboxes After Inputted By User?

Apr 13, 2011

I have created a sample program that dynamically created up to 7 numbers of Labels and Text Boxes. Here I want to add those numbers inputted by user on dynamically created text boxes.

Dim WithEvents TxtBox As TextBox
Dim WithEvents LblLabel As Label
Dim NoOfControl As Integer
Dim A As Integer

[code]....

View 6 Replies

Display A Single Character In A Label When Inputted By The User?

Jan 8, 2012

I have been assigned a task to create a basic hangman program and I need help to figure out how to show the letters that the user has guessed correctly without displaying any of the other Characters.The word that the user will be guessing is in a label the user will be guessing letters by clicking buttons This is a piece of the code for one of the buttons the user can click to guess the letter "C":

btnc.Visible = False
Guessletter = "C"
If lblword.Text.Contains("C") Then
*this is the part where I become stuck*
End If

View 6 Replies

Display Words From A String That User Has Inputted Starting With Certain Characters?

Oct 20, 2009

I'm making a program and was wondering if someone could please help me (its a console app) to display words from a string that the user has inputted starting with certain characters?

View 7 Replies

User Presses The Save Button To Save Data?

Feb 24, 2009

in my form i have 4 textboxes and i want all not to be empty while saving the data.I have put condition in save button,when user presses the save button to save data, to check all the textboxes not to be empty. My question is that, i want to focus to that particular textbox which is empty during saving the data.

For example: i have txt1,txt2,txt3,txt4 as textboxes in the form if txt1 is empty while saving, the focus should switch to txt1 rather user himself have to go there.

View 16 Replies

Save And Load Data?

May 23, 2012

I was wondering what is the easiest way to save and load data through different forms in vb. I just want to save 3 textbox.text that a user saves and be able to load it on a different form.

View 3 Replies

File - Save & Load Data?

Jan 6, 2011

Let's say I got a Dictionary type object holding some important info. Well, my user wants to close the program and work on it later.

How do I save the Dictionary and other variables in one single file, which can only be read by my program itself?

View 3 Replies

Properly Load And Save Data From A Listbox?

Sep 15, 2008

i currently am running vb 08 and need coding help about how to save text from a listbox and load it on app start up.i also need a code to automatically place a .txt file into a folder when installed

View 1 Replies

Save / Load Data In 2008 Express?

Mar 3, 2009

I have a set of labels that contain number values that need to be saved into a txt file and recalled from a text file by a button click event.

Ive been searching these fourms for days trying to find the answer to the save / load data problem. From what I understand, XML should be used to do this. But no matter how much I read I cant make sense out of how to solve this issue. I just need a simple and quick fix that dosen't have to use XML[code]...

View 1 Replies

Save/load Data In 2008 Express?

Mar 3, 2009

I have a set of labels that contain number values that need to be saved into a txt file and or recalled from a text file by a button click event.assume the value of label1 label2 and label3 must be stored in a text file on the users computer and then later loaded back into the program from that text file.How can this be done without using XML ?

View 1 Replies

Way To Save And Load Data Visual Basic?

Apr 26, 2011

I was wondering what is the easiest way to save and load data through different forms in vb. I just want to save 3 textbox.text that a user saves and be able to load it o

View 16 Replies

Forms :: Use Inputted Data From The NumericUpDown Control In A Statement?

May 13, 2009

I have a NumericUpDown control with a range of 10-50 and I want to have the selected number be multiplied by an amount of money to create yearly cost. I dont know, however, how to use inputted data from the NumericUpDown control in a statement because I cannot convert it to Integer and I also dont know how to call in the data even if a number is selected.

View 3 Replies

VS 2010 Errors When Trying To Produce Reports From Inputted Data, And In The Code?

Mar 28, 2011

i'm a freshman and was handed this assignment a short while ago and i'm having extreme difficulty figuring out why i keep getting the following error message whenever i click btnGenerate.Click on the form:Error1: Unable to apply this change while debugging. 'Private Sub GroupBox1_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GroupBox1.Enter' was deleted that modifies 'Public Class Form1'. You must revert the change or stop the debugging sessionBasically the assignment is requesting that we build a 'Call Cost Calculator' and since im relatively new to this i've never worked with strings before and also get the follow errors:Warning2Variable 'sCountryBeingPhoned' is used before it has been assigned a value. A null reference exception could result at runtime.Warning3Variable 'sPhonePlan' is used before it has been assigned a value. A null reference exception could result at runtime.

My form codes:
vb
Public Class Form1 'heading Const sFormHeading As String = "Call Cost

[code]....

I reals because it's driving me mad and i'm honestly quite literally stuck and can't move on until i get this sorted.

View 5 Replies

Save Data (some Text That User Type [as Password Etc]) And Save That Password On Same Location Where Is Application?

Dec 25, 2011

how to save data (for example some text that user type [as password etc]) and save that password on same location where is application. After saving I want to have also Load option so we can load saved data.

View 7 Replies

When Load Text File With Data That Save It Says Error Surpass Index

Jan 5, 2010

i have problem to load the data text file that i saved because i am out of the index ,where is the index that stops me?

View 14 Replies

Load Data Based On A Selected Month By The User ?

Jun 22, 2010

I have a vb .NET 2005 form that needs to load data based on a selected month by the user. Because there is a large amount of data in the table (60k+ records per month) it is taking the query a long time to pull the dataset back and populate the form. how I can decrease the overhead associated with querying a large dataset to populate a base form?

Note, I have created an identity key on the main table but haven't yet indexed any other fields (Though I could use some suggestions on how I should index).

See the following example of the Stored Proc that is run before my .net form is launched:

Dim cmd2 As New SqlCommand
Dim ConnectionString As String
Dim TheDatabase As System.Data.SqlClient.SqlConnection

[CODE]...

View 3 Replies

Load XML Document And Query Data On User Selection?

Feb 13, 2012

your life whatever you are doing.I have a big question. Well, it's a big job for me. I tried to google and follow some tutorials frist but finally realise rom stackoverflowers.I have a one big xml file such below. I have no control over its structure as it already exists with data.

<?xml version="1.0" encoding="utf-8" ?>
<root>
<Category Cat="A">

[code]....

View 1 Replies

App To Load A .exe File Specified By The User, Crypt It Then Save The Crypted .exe File?

Feb 19, 2011

I want my app to load a .exe file specified by the user, crypt it then save the crypted .exe file on a path also specified by the user. I need some guidance on this. First of all, I am currently using IO.filestream to store the .exe file. When I save the completed file (so far in development, that means a copy of the file as I haven't added encryption yet) the .exe file appear there alright, but without the icon (it has the standard/no icon instead) and it does not work. I tried outputting it to a .txt for examination and it was a bunch of tokens as one would expect. Here is the statements:

[Code]...

View 1 Replies

VS 2010 Where To Save User Data

Jul 9, 2009

I need my application, save the data for each user ... In short, whenever you start the program, it will do a check of these data.I had thought to save the data in an external XML file, but if this file will be deleted? Or use the registry and save the data using a registry key, as many programs (I think) save the activation (SN) of a program...

View 4 Replies

Load A Lisbox With Data From File. Save Data From Textbox To File?

Dec 10, 2011

I have a form with a listbox that when the form is opened I need it to display info from a file. I don't know what would be easier to work with Excel or a txt file, but it is in this format:

Phillip Frank
3/19/1990
3
999-555-8618[code].......

I would like it to populate the list box when the form is loaded, but if I have to use a button to tell it to load that is fine also.On the same form I have 4 textboxes that ask for each of the above items (name, DOB, Level, PH#) and a button that when pushed I want it to save it to the same file where the above info was pulled from in the same format.The Show Contacts button doesn't have to be used if it is not needed.

View 3 Replies

Sql Server - Winforms Dropdownbox Data Load : Allow The User To Select The State First?

Nov 1, 2010

I have a VB2005 winforms application that will loads city data from my database table. This is to ensure that the user enters the correct city spelling, in order to receive an accurate quote. Currently, there are about 150K cities that are being loaded to the dropdown listbox on page load. It takes about 30-40 seconds for that page to load. My initial thought was to allow the user to select the state first. Then load the city values. But the user has the option of going back and requesting a quote for a different city / state.

View 2 Replies

Forms :: Save Data To User.config That Is Not Bound?

Sep 23, 2009

I would like to commit the data put in a checkedlistbox to the user.config. I have found a way to commit them to my.settings but no matter what Save() method I call, it does not commit the new data (that is not bound to a control, through the propertybindings) to the user.config, either immediately or when I shutdown the application. Which means, when I loop through the settings when the application starts back up, the data is not there to be added back to the checkedlistbox. I have put save methods in the formclosing events as well as when the data is created in the my.settings. using my.mysettings, my.settings and my.settings.default. Thank you in advance for your input.

This first method is a called when a button is pushed. it checks the text and then calls the next method (AddProperty) which should add the property to my.settings and save it to user.config, but my understanding is that it is not written to the file till the applicatoin closes.

[code]...

View 5 Replies

Save Data In DGV And Individual Tables Into User Accounts

Mar 12, 2009

I have never worked with datagridview before. I need to know how to use it so i can use it in my (calculator) program. I would like to know how to make columns, rows, linking the cells in the table/grid to textboxes so values entered into the textboxes (on the calculator) after pressing save goes straight to the table.

View 1 Replies

VB2005 :: Save Data To User.config That Is Not Bound?

Sep 18, 2009

I have done a fair amount (days)of searching, before posting this,and cannot seem to find an answer.ata put in a checkedlistbox to the user.config. I have found a way to commit them to my.settings but no matter what Save() method I call, it does not commit the new data (that is not bound to a control, through the propertybindings) to the user.config either immediately or when I shutdown the application. Which means, when I loop through the settings when the application starts back up, the data is not there to be added back to the checkedlistbox. I have put save methods in the formclosing events as well as when the data is created in the my.settings

View 3 Replies

Security - Save User Profile Data Locally And Securely?

Mar 29, 2010

I am creating a VB.NET application for a Calculus class as a little side-project. It requires user profiles that are saved locally in the program's main files. I am using 2 separate classes to access the user profiles right now.

The first class is called Config and it is used to manipulate the basic config file which contains lesson document paths, settings, and user profile names.

The second class is called User and it is used to load up user profiles from a profile directory where user data is saved in separate text files.

The Config class retrieves the user names, and user profile text file paths. This text file path is then handed off to a User object that can then load up and interpret the file.

how should I format the config file and user files so they are secure enough that someone can not easily retrieve or manipulate data?

Here is a sample of how I am reading the text files:

Dim userList() As String = {Nothing}
If My.Computer.FileSystem.FileExists(configPath + "config.cfg") Then
Using MyReader As New Microsoft.VisualBasic.FileIO.TextFieldParser(configPath + "config.cfg")

[Code]....

The problem isn't reading the text file, I am just not sure how to make it secure. I was thinking about first parsing the entire file to translate it from 'encrypted' to text, and then save it as a temporary file which I would pass off to the above code, then delete the file immediately afterward. As for 'encrypting' (is that the right word for this?) the file, I could maybe bit-shift each character using a key that I would save at the beginning of the file.

View 2 Replies

VS 2010 Save Into Temp Data A User Made Class?

Jun 4, 2010

Is it possible to save into temp data a user made class? I have a class with many structures and each structure contains variables and im trying to add to my program a way to save the data of that class object with its structures and everything is that possible? I tried manually making some sort of save but its taking too long and proving way too hard for me. Is there a way to just convert it into some general object format and save the object? Is that possible can you just save undefined objects without having to create a format manually for that object?

View 6 Replies

Save Newly Added Data In A Row Or Rows From DataGridView Into SQL Server When The User Clicks A Button?

Mar 5, 2012

if could modify the following code for me so that it save data row by row from a DataGridView into SQl Server. Currently, the code saves data from all rows at time instead of saving only the recently added data in a row or rows when the user clicks a button.[code]...

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved