By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,631 Members | 1,950 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,631 IT Pros & Developers. It's quick & easy.

Saving the state of UI

P: n/a
Hi,

User can adjust the size of columns of a table or the position of splitter
in UI. We want these adjustments to be remembered when we restart the
application. Currently, we are saving these adjustments by the user in an
XML and saving that XML. We read the XML upon restart and make calls to set
the adjustments. This approach becomes difficult as we add more controls and
more settings can be made by the user. What other techniques can be use to
save (perhaps automatically) the STATE OF UI? As in Java, can we use
Serialization of UI to save its state [Java's Swings control are
serializable while in .Net, Form and all the controls are not serializable]?
Any pointers to articles on various approaches to SAVING THE STATE OF THE
ADJUSTMENTS made by the user will be greatly appreciated.

Thanks in Advance,

Regards,
Mahesh
Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Mahesh,

The first question is for me, how many of your controls are dynamicly placed
on the form. In a form where I use two splitters are that beside from the
form the top, the left side, the hight and the width the only things extra
the splitter side of the sized panels. The rest is performed by the docking.

(I save this kind of information in registry)

I hope this helps,

Cor
Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.