Hello everyone !
First of all i am kinda new to C# programming, so i hope this is not taken as a fail question in C# forums.
I'm having a difficult time trying to figure out my Windows Form Application.
At the moment my Windows Form Application contains various containers, menus and common controls like check boxes, I'm also including a DatagridView element and a small DataTable.
What i am trying to do is simple, in mind, but i haven't been able to make it work.
This are the simple steps of what i am trying to achieve:
- Run my Windows Form Application.
- Input some data into the DataTable, change some values in rows, check & uncheck some text boxes, etc.
- Click the File Save button, save a file with the information and close the application.
- Run my application and Open the file i just saved, read the file and display the information of my DataTable, checkboxes, textFields, etc.
And that's about it. I'm not planning to implement a database or something, i just want to be able to save my work in my Application and open it later.
I've read about SaveFile and OpenFile Dialogs, but actually i'm not sure how can i manage the part where by some programming functions i save a file with the information in my Application and interpret the file to update the data.
Specifically, How can i program a function that saves a file with the data on my DataTable?, i mean saving them as a string, or as numbers that i'll interpret when i open the file. I am confused about it.
Thanks
Isaac