471,349 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,349 software developers and data experts.

Saving the state of UI

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
Jul 21 '05 #1
1 1751
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
Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Jacob H | last post: by
5 posts views Thread by Michael Albanese | last post: by
11 posts views Thread by cwdjrxyz | last post: by
1 post views Thread by Mahesh Devjibhai Dhola [MVP] | last post: by
reply views Thread by headware | last post: by
2 posts views Thread by Børge Hansen | last post: by
2 posts views Thread by Greg | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.