Okay, I have a couple questions. I'm pretty new to Visual Basic, but I've done quite a bit of programming with Java and Flash. I know Visual Basic is supposed to be a nice starting foundation for new programmers, but it can be quite complicated even for those that aren't beginners.
Anyways, the program I'm working with needs to have a save function. Now, I know how to get my program to save text files. Pretty much like note pad does, but I'm not trying to save a text file. I need to save all the changes done to the form. Such as if the user checks a check box in the CheckBoxList, then the user clicks save and closes... When the user opens it back up either it's there or he can click a "load" or "open" button to call back upon the file. It would be fantastic if I could figure out how to get an auto-save type thing going, where the user doesn't actually have to click "save" it just saves when the user closes the program, and when the user opens it back up, it's there. That would be fantastic, but I'm guessing the code for this would be much more advanced. If someone could help me get a command button, or a tool button to save all changes done to the form I'd be so freakin' appreciative.
Without this function, my program is completely useless.
Thanks in advance,
Austin.
Copyright © 2024 Q2A.ES - All rights reserved.
Answers & Comments
Verified answer
Why don't you do an alternate approach?
Every time your program has information updated, save the information into a file. So once they quit your program, the information is still inside a file.
When the program opens up, give them the option to load it up.
All you need is a function to save the information and another function to read the saved information.
If you programmed in Java you should know how to deal with writing functions of this sort. For example, this is similar to taking in user input and doing an action. As in if the user types in "1" your program makes a screen popup or so. Except the only difference is that the commands are from a file. Simple, no?