Click here to Skip to main content
15,884,298 members
Home / Discussions / C#
   

C#

 
GeneralRe: can u help me with a if question? Pin
andredani6-Sep-07 3:08
andredani6-Sep-07 3:08 
GeneralRe: can u help me with a if question? Pin
TJoe6-Sep-07 3:15
TJoe6-Sep-07 3:15 
GeneralRe: can u help me with a if question? [modified] Pin
andredani6-Sep-07 3:34
andredani6-Sep-07 3:34 
GeneralRe: can u help me with a if question? Pin
TJoe6-Sep-07 3:40
TJoe6-Sep-07 3:40 
GeneralRe: can u help me with a if question? Pin
andredani6-Sep-07 4:02
andredani6-Sep-07 4:02 
GeneralRe: can u help me with a if question? Pin
TJoe6-Sep-07 5:29
TJoe6-Sep-07 5:29 
GeneralRe: can u help me with a if question? Pin
andredani6-Sep-07 11:25
andredani6-Sep-07 11:25 
GeneralRe: can u help me with a if question? Pin
TJoe7-Sep-07 2:15
TJoe7-Sep-07 2:15 
The easiest and recommended way is to simply write everything to the file when saving. Technically, you could add and remove items from the file but this can be tricky.

Basically, you will read everything into the ListView. Allow the user to add or remove items as they see fit. Then to save, you simply write everything (which is everything in the ListView) to the file. Since you are overwriting the file, only items that are in the ListView will exist in the file after saving. This means items deleted by the user were removed and items added were inserted.



Take care,
Tom

-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com

GeneralRe: can u help me with a if question? Pin
andredani7-Sep-07 2:54
andredani7-Sep-07 2:54 
GeneralRe: can u help me with a if question? Pin
TJoe7-Sep-07 3:12
TJoe7-Sep-07 3:12 
GeneralRe: can u help me with a if question? Pin
andredani7-Sep-07 5:13
andredani7-Sep-07 5:13 
AnswerRe: can u help me with a if question? Pin
Luc Pattyn5-Sep-07 9:59
sitebuilderLuc Pattyn5-Sep-07 9:59 
GeneralRe: can u help me with a if question? [modified] Pin
andredani5-Sep-07 11:31
andredani5-Sep-07 11:31 
QuestionWorkaround global variables? Pin
MeLight5-Sep-07 8:36
MeLight5-Sep-07 8:36 
AnswerRe: Workaround global variables? Pin
TJoe5-Sep-07 8:52
TJoe5-Sep-07 8:52 
AnswerRe: Workaround global variables? Pin
Christian Graus5-Sep-07 8:53
protectorChristian Graus5-Sep-07 8:53 
AnswerRe: Workaround global variables? Pin
Larantz5-Sep-07 8:53
Larantz5-Sep-07 8:53 
AnswerThanx Pin
MeLight5-Sep-07 8:57
MeLight5-Sep-07 8:57 
AnswerRe: Workaround global variables? Pin
Dave Kreskowiak5-Sep-07 9:08
mveDave Kreskowiak5-Sep-07 9:08 
Questionsizeof Pin
dino20945-Sep-07 8:26
dino20945-Sep-07 8:26 
AnswerRe: sizeof Pin
TJoe5-Sep-07 8:50
TJoe5-Sep-07 8:50 
GeneralRe: sizeof Pin
Luc Pattyn5-Sep-07 10:02
sitebuilderLuc Pattyn5-Sep-07 10:02 
GeneralRe: sizeof Pin
TJoe5-Sep-07 10:19
TJoe5-Sep-07 10:19 
GeneralRe: sizeof Pin
dino20945-Sep-07 11:54
dino20945-Sep-07 11:54 
QuestionProblem passing data to an activeX Pin
Paolo Vernazza5-Sep-07 6:55
Paolo Vernazza5-Sep-07 6:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.