TreeView运行时更改 [英] TreeView Runtime Changes

查看:73
本文介绍了TreeView运行时更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的专业人士,

在我的应用程序中,用户将在运行时创建一个树视图我的问题,我想保存运行时的更改,以便下次启动时可用应用程序。

FYI:我正在使用My.setting的所有其他控件。

我应该序列化吗?或者还有另一种更简单的方法。



i对于这样的假问题很抱歉。

dear professionals,
in my application the user will create a tree view on the run time my issue that i want to save the changes on the run time to be available for the next start of the application.
FYI: all other controls i am using My.setting.
Should i serialize it ? or there is another easier way.

i am sorry for such dummy questions.

推荐答案

你可以'不要序列化控件本身。您必须序列化或以其他方式保存用于构建和填充控件的数据。在下一次运行时,您的代码将从文件中读回数据并重新创建控件,如前所述。
You can''t serialize the control itself. You have to serialize, or otherwise save, the data used to build and populate the control. Upon the next run, your code would read the data back from the file and re-create the control as it was before.


这篇关于TreeView运行时更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆