473,399 Members | 2,146 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Save user entered data

I have a Win app in C#. I want to save the data the user enterere into
textboxes and the selections the user made to comboboxes when the user close
the app. So next time when the user launches the app, he can see the data he
entered before.

How can I do this?

Thanks.
Aug 2 '06 #1
2 2109

"John" <Jo**@discussions.microsoft.comwrote in message
news:8B**********************************@microsof t.com...
>I have a Win app in C#. I want to save the data the user enterere into
textboxes and the selections the user made to comboboxes when the user
close
the app. So next time when the user launches the app, he can see the data
he
entered before.

How can I do this?
Write them to a file, and read the file and put the data back in the boxes
(or set SelectedItem to match was was saved) next time.
Aug 2 '06 #2
An easy way is to take advantage of the auto-generated Settings class
(under Properties in your project folder). Double-click it to define a
few settings of User scope for your controls and you'll be able to
access these settings in code using strongly typed properties on the
Settings class. Make sure to call the Save method on the Settings class
before you app exits to save the settings. Next time you launch the
app, the settings will be automatically loaded.

You can also access the ApplicationSettings property on both TextBox
and ComboBox to edit the same settings as mentioned above. You can
easily tie settings up with specific properties on the controls using
the second approach.

John wrote:
I have a Win app in C#. I want to save the data the user enterere into
textboxes and the selections the user made to comboboxes when the user close
the app. So next time when the user launches the app, he can see the data he
entered before.

How can I do this?

Thanks.
Aug 3 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Stuart E. Wugalter | last post by:
Hello All! I have a button on a form that is tied to the following query: UPDATE tblSEQTAQ AS A SET A.taqcall = WHERE (((A.taqcall)="Allele 1")); The user looks at the form and decides to...
2
by: Paul Brady | last post by:
I have non-computer skilled users entering data into a form. There are certain ranges of values which, if they enter them, make no sense in the application, but I can't test them until they try to...
7
by: Javaman59 | last post by:
This is about finding the right point at which to save user entered data in the registry, so that when the application is restarted, the saved values will be restored. I want this behaviour to be...
0
by: Dune | last post by:
Hi there, I have an aspx page that allows users to enter several parameters using drop downs and text boxes. The users then press a button that produces an extract based on the parameters they...
4
by: louise raisbeck | last post by:
I have this scenario (simplified) function addnewdata () { check for partial match already in db for information entered by user if (partialmatch succeeds) { open new window aspx page (using...
4
by: Matt | last post by:
Hi, I would like to save a file locally (on the client computer) in an ASP.net application. It is like the server would return some data that the user can save to a file on his local PC. The ASP...
6
MitchR
by: MitchR | last post by:
I Have created a table for data entry. The table and accompanying form used to enter data is used for returning leased assets back to a lease holder. My question is this: I want to script a Save and...
4
by: sufian | last post by:
Below is the field where user enters his/her email address and the AJAX post request is sent to the server and the user sees the message: echo("<div id=\"message\" class=\"success\">Thank you! You...
8
jmoudy77
by: jmoudy77 | last post by:
Hi, I've got a form that allows a user to imput their flight data. I programmed a MsgBox into the save button that asks if the user wants to input another duty position for the flight. If no, the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.