Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can the state of a checkbox be saved

 
Tris Rabar
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Is it possible to save the state of a checkbox?
I am trying to save a tree view that contains checkboxes at the nodes, and need to save which values/nodes are selected. Can I do this? If so,
how's it done?
Thanks...
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Couple of ideas:
Have you looked into Serialization (also Object Serialization)?
And just to keep track of a few checkboxes, perhaps you could write a simple text file when you close the program, then read the text file when you start the program.
Good Luck.
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or maybe a properties file.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic