It sounds like you're wanting to persist control values when the form closes. This is a simple enough requirement without using a CSV file, so the question I have is: are you only using a CSV file because this is what you're most familiar with or are you using a CSV file so that a user (or anyone) can edit the values outside of the application?