Hello,
I wish to write a program on C#(Windows Form) which kept in inself data which the user enters, so then they could read and change this data. I do not want save this data in database or file. Thanks in advanced.
Georgy Ivanov
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Hirendra SisodiyaRank #258 · 9.8K reputationPosted Apr 7, 2010, 5:09 AM EDT
you can save some data in application configuration file or you can use concept of isolated storage...which type of data needs to store???
thanks
Please mark as answere if it helps
Jaish MathewsRank #225 · 11K reputationPosted Apr 7, 2010, 5:10 AM EDT
You can use serialization ie. any information in a clas can be saved as a file. Later yo can take back that file as a class and can modify. Just look on of my old article
http://www.vbdotnetheaven.com/UploadFile/jaishmathews/ApplySerializationinaRealLifeSituation11142006034411AM/ApplySerializationinaRealLifeSituation.aspx?ArticleID=5b7034a7-2839-44f2-a713-7ab09686e4a2
Sam HobbsRank #107 · 20.5K reputationPosted Apr 7, 2010, 7:02 AM EDT
Gogo9 reputationPosted Apr 7, 2010, 10:33 AM EDT
Thanks for the answer.
Yes, I want to save user data in executable file and this data also needs to be changed by the user. There is a program which is doing the same. Its name is Crypditor - http://www.protectcom.net/products/crypditor/. It's free(see atached file). Here you are some info about Crypditor :
Cypditor is a new free text editor to save your data with a high-secure encryption algorithm (AES).
No other software needed: application and documents are in one, because the mechanism to encrypt and decrypt the text files is part of it.
Crypditor is designed to store your serial numbers, passwords, phone numbers and notes fast and simple in a safe place.
No installation required!
Create your secure datafile and copy it on a USB stick. You do not have to install any software: the encrypted data is hidden within the software and protect by your password. If you lost the file, noone can open it or review the data.
Simple but secure
Crypditor works like a text editor. Write your text or import your existing textfiles (tabbed working is supported) within Crypditor and save the file. Double-click at the file and enter your password: you have access to your text files again.
Security
Your informations will be encrypted using a password with the most modern AES 256bit encryption technology. Innovative: a implemented Password-quality-check shows, how secure your password is.
Freeware
Free for download - free for use! English Version!
Features
- Application and documents in one!
- Support tab controls: it keeps everything in one window
- Import your existing textfiles
- Password-quality-check
- No installation required!
- High-secure encryption algorithm (AES)
- Freeware: Free for download - free for use! English Version!
- and much more...
Gogo9 reputationPosted Apr 7, 2010, 10:48 AM EDT
I do not want to save data within configuration or other files. I want to save data within my application(executable file). This file can be move from one to other computer, so I think isolated storage is not good idea. I found one application - Cryptditor(see above) which is doing what I want, but I do not know how.About type of data - numbers, strings, and dataset.
Thanks
Gogo9 reputationPosted Apr 7, 2010, 10:59 AM EDT
Thanks for the answer, but I want to have only one file - my application file(executable file). With serialization I will have more than one file. I am trying to do something like CrypDitor(please see above)
Jaish MathewsRank #225 · 11K reputationPosted Apr 7, 2010, 11:09 AM EDT
One need is a need itself. You tried with resource fil? They will be embeded to the assembly once build. More over this resource file can read during run time. Numbers and Strings you can already keep as key/value pair. For DataSet, use typed dataset and add that file to resource. Add file option is available. I never tried with these. But you can go through these ways.
Gogo9 reputationPosted Apr 7, 2010, 8:26 PM EDT
Thanks for the answer. I can't use the resource files because I want to change the data in runtime.