saving settings in visual basic
Posted on 2003-11-13
again, its that damn IT coursework that just wont sort itself out! im sooo close, but i underestimated one lil thing...
basically ive got a login system. usernames are entered into a listbox (cunningly named lstUser) by an administrator. students can then log on to the program and take tests, the results of which are sent to the tutors email address so they can check the students progress.
i need to learn how to save settings so that the names in the listbox are remembered each time the program is opened. pretty pointless if the are lost each time the administrator closes the program!
in the same way, access to the admin section of the program is done via a password. this password can be changed (don't know why they would want to change it, but i thought it made a cool USP)
i need a way to save the settings so that this password is remembered, in much the same way as the data in the list box is entered. if it makes any difference, the password is stored in a label on the admin section, the names being in a listbox (as mentioned).
if its possible, would some kind person please give me a crash course in saving settings? code is great, but it would also help if it was fully explained (how and why it works) - im not too quick im afraid (damn welsh heritage) =)
thankee kindly all
ps. sorry its only 115 points - its all ive got =(