Please is there anyway to writing the value of (radio,checkbox ...etc) of any item in the form to text file ....
Thanks for advance
I have attached a Visual Studio 2005 project (as a zip file) that shows how to save your values from the form to a text file, and as an added bonus, a way of bringing those values back from a text file.
It uses a couple recursive methods .
There are certainly ways to streamline it. You could even use reflection to help save every property and event declaration to an XML file, and regenerate the form to a specific state on demand.
If you want to get real creative, you could actually Create a new blank form and populate it from the XML file (except for the events.). This demo project does nothing like that.
All the demo project does is write a simple text file with the Component Name=value combo.
Thanks a lot
I was read your poost and I was really great, but my question is how can I write just the controls on the form I wan , I have 40 checkboxes and I want to to write just 10 of them to txt file,,,,could you please tell me how ???
Thanks in advance......
Do you know exactly which ones you want to write to Text ?
Do you want to use their Names ? (example checkbox1, checkbox23)
Instead of names, do you want to use a Tag value to determine which ones are to be written to Text ? (example all checkboxes with a Tag = "Save this checkbox to text"; ?
You have some checkbox components you want to write to Text... I assume that you already know which ones you want to use. So you now just need to identify which ones you want written.
Let me know how you want to proceed. If you want, you can send your project to me (zipped) at firstname.lastname@example.org and a list of the checkboxes you want saved, and I can show you how in your own code.
Thanks a lot . I sent it to your e-mail
Hi, as I was told that my code doesn’t scale well at all, I thought perhaps I’d try to get a better understanding of interfaces/abstract classes and classes and the relationship between them.
I don’t want at this stage work on a big separate project as I've already got plenty ...
OK, so HostGator for some reason no longer allows gcc/g++ access unless you have a Designated Server account, which is a lot of money to spend just to compile my "Hello World" program. Thus I figured I'd compile at home, then upload. Program is your regular old bare-bones Hello World ...
Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.
Private Sub btn_addline_Click(ByVal ...