保存复选框状态 [英] Save the CheckBox state

查看:132
本文介绍了保存复选框状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要知道是否可以保存C#中的 CheckBox 的状态?我的意思是,如果我检查 CheckBox 并关闭程序,一旦我重新启动程序, CheckBox 将仍然保持选中。是否有可能?

I need to know if is possible to save the state of a CheckBox in C#? I mean if I check the CheckBox and close the program, once I restart the program the CheckBox will still stay checked. Is it possible to?

推荐答案

这是一个普遍的问题。

This is rather a general question. You need to serialise the state yourself somehow, but how, and where to depends on a lot of things.

可能需要看一下设置文件,以便开始。

Possibly take a look at a Settings file for a simple start.

这篇关于保存复选框状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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