关闭应用时保存标签和内容 [英] Saveing tabs and content when closing app

查看:82
本文介绍了关闭应用时保存标签和内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一个小应用程序,我可以在其中写下电话笔记和其他工作内容。

我使用选项卡控件添加不同类型的选项卡,一切都按预期工作。

事情是,我希望能够在我关闭应用程序时(或者每当我选择时)保存所有选项卡及其内容,这样我就可以重新启动计算机而不会丢失任何笔记。如果有人能指出我正确的方向,那将是伟大的。谢谢!

解决方案

您可以使用流来序列化数据或将其写入文件。搜索结果

Im making a small app in which i can write telephone notes and other stuff at work.
Im using a tab control to add different types of tabs and everything is working as intended.
The thing is, id like to be able to save all the tabs and their contents when i close the app (or whenever i choose) so that i can i.e. restart the computer and such without loosing any notes. If anyone can point me in the right direction that would be great. Thanks!

解决方案

You can either serialize the data or write it to file yourself using streams.


这篇关于关闭应用时保存标签和内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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